Example #1
0
 public XObjs.InterSwitchResponse getJsonTrasactionsData(string product_id, string transactionreference, string amount, string get_trans_hash)
 {
     this.check_trans_page = ConfigurationManager.AppSettings["pd_get_trans_json_page"];
     RemotePost post = new RemotePost();
     post.Add("productid", product_id);
     post.Add("transactionreference", transactionreference);
     post.Add("amount", amount);
     post.AddHeader("Hash", get_trans_hash);
     string formResponse = post.GetFormResponse(this.check_trans_page, "GET");
     this.isr = this.js.Deserialize<XObjs.InterSwitchResponse>(formResponse);
     return this.isr;
 }
Example #2
0
 public string DoPaymentX()
 {
     this.payment_page = ConfigurationManager.AppSettings["pd_payment_page"];
     RemotePost post = new RemotePost();
     post.Add("product_id", "4584");
     post.Add("pay_item_id", "101");
     post.Add("amount", "3470000");
     post.Add("currency", "566");
     post.Add("site_redirect_url", "http://xpayng.com/xis/pd/xreturn/index.aspx");
     post.Add("txnref", "D7B9123C8277");
     post.Add("hash", "95A664FC0B0FE78C0A887B8CB88B6D3E3FC0196BB985B4DAAA07781CF8D8F74FF035E86730EB9DF655692E9F39FD598AAA15F88EF5180B250339FEA6EFAC4E84");
     return post.SendForm("https://stageserv.interswitchng.com/test_paydirect/pay", "POST").ToString();
 }
Example #3
0
 public string DoPayment(XObjs.InterSwitchPostFields ispf)
 {
     this.payment_page = ConfigurationManager.AppSettings["pd_payment_page"];
     RemotePost post = new RemotePost();
     post.Add("product_id", ispf.product_id);
     post.Add("pay_item_id", ispf.pay_item_id);
     post.Add("amount", ispf.amount);
     post.Add("currency", ispf.currency);
     post.Add("site_redirect_url", ispf.site_redirect_url);
     post.Add("txn_ref", ispf.txn_ref);
     post.Add("hash", ispf.hash);
     return post.SendForm(this.payment_page, "POST").ToString();
 }