Browse Source

#account validation

feature/Redmine-17825-Email_Template
Leeza Baidar 10 months ago
parent
commit
4186c11092
  1. 19
      GMENepal/GMENepalAPIService/GMENepalAPI.cs

19
GMENepal/GMENepalAPIService/GMENepalAPI.cs

@ -273,6 +273,19 @@ namespace GMENepal.GMENepalAPIService
, gS.SenderCostRate, gS.ReceiverCostRate, Convert.ToString(gS.ExRate), gS.Signature);
}
else
{
AccountValidate accValidate = new AccountValidate
{
BankCode = gS.BankCode,
AccountNumber = gS.BankAccountNumber,
ReceiverName = gS.BeneName,
ControlNo = gS.ControlNo,
PaymentMode = gS.PaymentMethod
};
var response = AccountValidation(accValidate);
if (response.ResponseCode.Equals("0") || response.ResponseCode.Equals("100"))
{
var exRateBank = _fastMoneyWeb.GetCalculation(gS.PartnerId, gS.UserName, gS.Password, gS.SessionId, "", "1000", "B", gS.BeneCountry, "P");
@ -285,6 +298,12 @@ namespace GMENepal.GMENepalAPIService
_response.Extra = exRateBank.ExRate;
}
else
{
_response.ResponseCode = response.ResponseCode;
_response.Msg = response.Msg;
}
}
_log.Info("SendTransaction | RESPONSE :" + JsonConvert.SerializeObject(model).ToString());

Loading…
Cancel
Save