Example #1
0
 public System.Threading.Tasks.Task <ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestResponse> PaymentRequestAsync(string MerchantID, int Amount, string Description, string Email, string Mobile, string CallbackURL)
 {
     ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestRequest inValue = new ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestRequest();
     inValue.Body             = new ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestRequestBody();
     inValue.Body.MerchantID  = MerchantID;
     inValue.Body.Amount      = Amount;
     inValue.Body.Description = Description;
     inValue.Body.Email       = Email;
     inValue.Body.Mobile      = Mobile;
     inValue.Body.CallbackURL = CallbackURL;
     return(((ZARINPAL_PARDAKHT.ServiceReference.PaymentGatewayImplementationServicePortType)(this)).PaymentRequestAsync(inValue));
 }
Example #2
0
 public int PaymentRequest(string MerchantID, int Amount, string Description, string Email, string Mobile, string CallbackURL, out string Authority)
 {
     ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestRequest inValue = new ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestRequest();
     inValue.Body             = new ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestRequestBody();
     inValue.Body.MerchantID  = MerchantID;
     inValue.Body.Amount      = Amount;
     inValue.Body.Description = Description;
     inValue.Body.Email       = Email;
     inValue.Body.Mobile      = Mobile;
     inValue.Body.CallbackURL = CallbackURL;
     ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestResponse retVal = ((ZARINPAL_PARDAKHT.ServiceReference.PaymentGatewayImplementationServicePortType)(this)).PaymentRequest(inValue);
     Authority = retVal.Body.Authority;
     return(retVal.Body.Status);
 }
Example #3
0
 System.Threading.Tasks.Task <ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestResponse> ZARINPAL_PARDAKHT.ServiceReference.PaymentGatewayImplementationServicePortType.PaymentRequestAsync(ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestRequest request)
 {
     return(base.Channel.PaymentRequestAsync(request));
 }
Example #4
0
 ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestResponse ZARINPAL_PARDAKHT.ServiceReference.PaymentGatewayImplementationServicePortType.PaymentRequest(ZARINPAL_PARDAKHT.ServiceReference.PaymentRequestRequest request)
 {
     return(base.Channel.PaymentRequest(request));
 }