Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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);
        }