Example #1
0
        public string DoPaymentX()
        {
            payment_page = ConfigurationManager.AppSettings["pd_payment_page"];

            Ipong.Classes.RemotePost rp = new Ipong.Classes.RemotePost();
            rp.Add("product_id", "4584");
            rp.Add("pay_item_id", "101");
            rp.Add("amount","3470000");
            rp.Add("currency", "566");
            rp.Add("site_redirect_url", "http://xpayng.com/xis/pd/xreturn/index.aspx");
            rp.Add("txnref", "D7B9123C8277");
            rp.Add("hash", "95A664FC0B0FE78C0A887B8CB88B6D3E3FC0196BB985B4DAAA07781CF8D8F74FF035E86730EB9DF655692E9F39FD598AAA15F88EF5180B250339FEA6EFAC4E84");
            string succ = rp.SendForm("https://stageserv.interswitchng.com/test_paydirect/pay", "POST");
            return succ.ToString();
        }
Example #2
0
        public string DoPayment(Ipong.Classes.XObjs.InterSwitchPostFields ispf)
        {
            payment_page = ConfigurationManager.AppSettings["pd_payment_page"];

            Ipong.Classes.RemotePost rp = new Ipong.Classes.RemotePost();
            rp.Add("product_id", ispf.product_id);
            rp.Add("pay_item_id", ispf.pay_item_id);
            rp.Add("amount", ispf.amount);
            rp.Add("currency", ispf.currency);
            rp.Add("site_redirect_url", ispf.site_redirect_url);
            rp.Add("txn_ref", ispf.txn_ref);
            rp.Add("hash", ispf.hash);
            string succ = rp.SendForm(payment_page, "POST");
            return succ.ToString();
        }
Example #3
0
 public Ipong.Classes.XObjs.InterSwitchResponse getJsonTrasactionsData(string product_id, string transactionreference, string amount, string get_trans_hash)
 {
     //inputString = product_id + transactionreference + hash;
     //Get the hash value
       //  string get_trans_hash = hash_value.GetGetSHA512String(inputString);
     check_trans_page = ConfigurationManager.AppSettings["pd_get_trans_json_page"];
     Ipong.Classes.RemotePost rp = new Ipong.Classes.RemotePost();
     rp.Add("productid", product_id);
     rp.Add("transactionreference", transactionreference);
     rp.Add("amount", amount);
     rp.AddHeader("Hash", get_trans_hash);
     string succ = rp.GetFormResponse(check_trans_page, "GET");
     //0.985
     isr = js.Deserialize<Ipong.Classes.XObjs.InterSwitchResponse>(succ);
     return isr;
 }