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); } }
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)); }