public int VerifyTransaction(string authority, int amount, out long refId) { int Status; System.Net.ServicePointManager.Expect100Continue = false; ZarinPalServiceReference.PaymentGatewayImplementationServicePortTypeClient zp = new ZarinPalServiceReference.PaymentGatewayImplementationServicePortTypeClient(); Status = zp.PaymentVerification(ZARINPAL_MERCHANT_CODE, authority, amount, out refId); return(Status); }
public int RequestAuthoruty(decimal chargeValue, string desc, out string authority) { System.Net.ServicePointManager.Expect100Continue = false; ZarinPalServiceReference.PaymentGatewayImplementationServicePortTypeClient zp = new ZarinPalServiceReference.PaymentGatewayImplementationServicePortTypeClient(); string Authority; int status = zp.PaymentRequest(ZARINPAL_MERCHANT_CODE, int.Parse(chargeValue.ToString()), desc, "*****@*****.**", "09111111111", "http://mibarimapp.com/verify", out Authority); authority = Authority; return(status); }