Beispiel #1
0
 public static dynamic RemitterKYCValidate(string otp, string mobile_number, string aadhaar_number, string aadhaar_card, string filename)
 {
     try
     {
         string url   = root + "/ws/kyc/remitter/validate";
         var    param = new Dictionary <string, dynamic> {
             {
                 "token", token
             },
             {
                 "request", new Dictionary <string, string> {
                     { "otp", otp },
                     { "mobile_number", mobile_number },
                     { "aadhaar_number", aadhaar_number },
                     { "aadhaar_card", aadhaar_card },
                     { "filename", filename }
                 }
             }
         };
         var res = GetResponse(url, "POST", param);
         if (res.statuscode.Value == "TXN")
         {
             return(res);
         }
         else
         {
             return(InstantPayError.GetError(res.statuscode.Value));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 public static dynamic RemitterKYC(string Mobile, string Aadhaar)
 {
     try
     {
         string url   = root + "/ws/kyc/remitter";
         var    param = new Dictionary <string, dynamic> {
             {
                 "token", token
             },
             {
                 "request", new Dictionary <string, string> {
                     { "mobile_number", Mobile },
                     { "aadhaar_number", Aadhaar }
                 }
             }
         };
         var res = GetResponse(url, "POST", param);
         if (res.statuscode.Value == "TXN")
         {
             return(res);
         }
         else
         {
             return(InstantPayError.GetError(res.statuscode.Value));
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Beispiel #3
0
 public static dynamic GetBankDetails(string account)
 {
     try
     {
         string url   = root + "/ws/dmi/bank_details";
         var    param = new Dictionary <string, dynamic> {
             {
                 "token", token
             },
             {
                 "request", new Dictionary <string, string> {
                     { "account", account }
                 }
             }
         };
         var res = GetResponse(url, "POST", param);
         if (res.statuscode.Value == "TXN")
         {
             return(res);
         }
         else
         {
             return(InstantPayError.GetError(res.statuscode.Value));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #4
0
 public static string ElectricityValidation(string agentid, string amount, string Mobile, string spkey, string account, string pin, string outletid)
 {
     try
     {
         string transactionstatus = string.Empty;
         var    listinfo          = "";
         string url       = root + "/ws/api/transaction?format=json&token=" + token + "&agentid=" + agentid + "&amount=" + amount + "&spkey=" + spkey + "&account=" + account + "&mode=VALIDATE&optional1={{optional1}}&optional2={{optional2}}&optional3={{optional3}}&optional4={{optional4}}&optional5={{optional5}}&optional6={{optional6}}&optional7={{optional7}}&optional8=remarks&optional9=" + pin + "&outletid=" + outletid + "&endpointip={{customer_ip}}&customermobile=" + Mobile + "&paymentmode=CASH&paymentchannel=AGT";
         var    res       = GetResponse(url, "GET", new Dictionary <string, string>());
         string errorcode = res.ipay_errorcode;
         string des       = res.ipay_errordesc;
         if (errorcode == "TXN")
         {
             transactionstatus = errorcode;
         }
         else
         {
             transactionstatus = InstantPayError.GetError(errorcode);
         }
         return(transactionstatus);
         //if(res.)
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #5
0
 public static dynamic ElectricityServiceProviderDetails(string spkey)
 {
     try
     {
         string url       = root + "/ws/api/serviceproviders?token=" + token + "&spkey=" + spkey + "&format=json";
         var    res       = GetResponse(url, "GET", new Dictionary <string, string>());
         string errorcode = res.ipay_errorcode;
         if (errorcode == "TXN")
         {
             return(res);
         }
         else
         {
             return(InstantPayError.GetError(errorcode));
         }
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
Beispiel #6
0
 public static string CheckPaymentStatusAPI(string MobileNo, string PinNumber, string Command, string RequestId)
 {
     try
     {
         string transactionstatus = string.Empty;
         string url       = root + "MobileNo=" + MobileNo + "&PinNumber=" + PinNumber + "&Command=" + Command + "&RequestId=" + RequestId + "";
         var    res       = GetResponse(url, "GET", new Dictionary <string, string>());
         string errorcode = res.Status;
         string des       = res.Message;
         if (errorcode == "2")
         {
             transactionstatus = errorcode;
         }
         else
         {
             transactionstatus = InstantPayError.GetError(errorcode);
         }
         return(transactionstatus);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }