Esempio n. 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();
        }
Esempio n. 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();
        }