public GetTransactionStatusResponse CallFundTransferAPI(string mobile_no, string sender_profile_id, string beneficiary_id, int amount, long client_id, string transfer_mode = "IMPS") { string token = getToken(); string url = DMT_URL + "/fund_transfer"; string bodyParam = "username="******"&pwd=" + API_PASSWORD + "&mobile_no=" + mobile_no + "&sender_profile_id=" + sender_profile_id + "&beneficiary_id=" + beneficiary_id + "&amount=" + amount + "&transfer_mode=" + transfer_mode + "&gateway=GW1&client_id=" + client_id + "&token=" + token; string API_response = ExecuteDMRAPIScriptApi(url, bodyParam); GetTransactionStatusResponse objResponse = Newtonsoft.Json.JsonConvert.DeserializeObject <GetTransactionStatusResponse>(API_response); return(objResponse); }
public GetTransactionStatusResponse CallTransactionStatusAPI(string transaction_id) { string token = getToken(); string url = DMT_URL + "/get_transaction_status"; string bodyParam = "username="******"&pwd=" + API_PASSWORD + "&transaction_id=" + transaction_id + "&gateway=GW1&token=" + token; string API_response = ExecuteDMRAPIScriptApi(url, bodyParam); GetTransactionStatusResponse objResponse = Newtonsoft.Json.JsonConvert.DeserializeObject <GetTransactionStatusResponse>(API_response); return(objResponse); }