Exemplo n.º 1
0
        public async System.Threading.Tasks.Task <string> StartPayAsync(int _Amount, string _Description, string _Email = "", string _Mobile = "")
        {
            try
            {
                ZarniPal.PaymentGatewayImplementationServicePortTypeClient request = new ZarniPal.PaymentGatewayImplementationServicePortTypeClient();

                var value = await request.PaymentRequestAsync(_MerchantID, _Amount, _Description, _Email, _Mobile, _CallbackURL);

                if (value.Body.Status > 0)
                {
                    return(value.Body.Authority);
                }
                else
                {
                    return(value.ToString());
                }
            }
            catch
            {
                return(null);
            }
        }
Exemplo n.º 2
0
        public async System.Threading.Tasks.Task <ZarniPal.PaymentVerificationResponse> CheckPaymentStatusAsync(string autohority, int _Amount)
        {
            ZarniPal.PaymentGatewayImplementationServicePortTypeClient request = new ZarniPal.PaymentGatewayImplementationServicePortTypeClient();

            return(await request.PaymentVerificationAsync(_MerchantID, autohority, _Amount));
        }