Exemplo n.º 1
0
        public async Task Rebill()
        {
            var appSettings = ConfigurationManager.AppSettings;

            var px = new PxPay();
            var url = await px.Rebill(NewTxnId(), 10.00m, appSettings["PxPayDpsBillingIdSample"]);
            Assert.IsTrue(url.StartsWith("https://sec.paymentexpress.com"));
        }
Exemplo n.º 2
0
        public async Task ProcessResponseForPurchase()
        {
            var appSettings = ConfigurationManager.AppSettings;

            var px = new PxPay();
            var response = await px.ProcessResponse(appSettings["PxPayPurchaseReponseSample"]);
            Assert.AreEqual(1, response.Success);
        }
Exemplo n.º 3
0
        public async Task ProcessResponseForBillSetup()
        {
            var appSettings = ConfigurationManager.AppSettings;

            var px = new PxPay();
            var response = await px.ProcessResponse(appSettings["PxPayBillSetupResponseSample"]);
            Assert.AreEqual(1, response.Success);
            Assert.AreNotEqual("", response.DpsBillingId);
        }
Exemplo n.º 4
0
 public async Task BillSetupWithAuth()
 {
     var px = new PxPay();
     var url = await px.BillSetup(NewTxnId(), 10.00m);
     Assert.IsTrue(url.StartsWith("https://sec.paymentexpress.com"));
 }
Exemplo n.º 5
0
 public async Task Purchase()
 {
     var px = new PxPay();
     var url = await px.Purchase(NewTxnId(), 10.00m);
     Assert.IsTrue(url.StartsWith("https://sec.paymentexpress.com"));
 }