diff --git a/GMENepal/GMENepal.csproj b/GMENepal/GMENepal.csproj index a0c4d71..865f830 100644 --- a/GMENepal/GMENepal.csproj +++ b/GMENepal/GMENepal.csproj @@ -134,6 +134,10 @@ {d626fe23-51c8-4441-b3c7-92a54d1f572e} Common + + {3dede19d-6d7b-4825-b537-ccc7afc38f56} + Repository + diff --git a/GMENepal/GMENepalAPIService/GMENepalAPI.cs b/GMENepal/GMENepalAPIService/GMENepalAPI.cs index 78e478b..4f5dac5 100644 --- a/GMENepal/GMENepalAPIService/GMENepalAPI.cs +++ b/GMENepal/GMENepalAPIService/GMENepalAPI.cs @@ -16,6 +16,7 @@ using System.Linq; using System.Reflection; using System.Security.Cryptography; using System.Text; +using Repository.DAO.ThirdParty; namespace GMENepal.GMENepalAPIService { @@ -274,9 +275,19 @@ namespace GMENepal.GMENepalAPIService } 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"); - _log.Info("GetExRate | RESPONSE :" + JsonConvert.SerializeObject(exRateBank).ToString()); model = _fastMoneyWeb.ProcessBankDeposit(gS.PartnerId, gS.UserName, gS.Password, gS.ControlNo, exRateBank.ExConfirmId , gS.MembershipId, gS.CustomerName, gS.CustomerAddress, gS.CustomerContact, gS.CustomerCity, gS.CustomerCountry @@ -286,6 +297,17 @@ namespace GMENepal.GMENepalAPIService , gS.SenderCostRate, gS.Signature); _response.Extra = exRateBank.UsdVsNpr; + } + else + { + ThirdPartyRepo thirdPartyRepo = new ThirdPartyRepo(); + thirdPartyRepo.SyncTxnAsComment(sendTransaction.ProviderId, sendTransaction.TranId.ToString(), gS.ControlNo, "", response.Msg); + + _response.ResponseCode = response.ResponseCode; + _response.Msg = response.Msg; + + return _response; + } } _log.Info("SendTransaction | RESPONSE :" + JsonConvert.SerializeObject(model).ToString()); @@ -325,6 +347,7 @@ namespace GMENepal.GMENepalAPIService _response.Msg = model.Message; _response.Extra2 = model.Status; _response.Data = model; + _response.Extra = model.ExRate; if (!_response.ResponseCode.Equals("0")) { _response.ResponseCode = "1"; diff --git a/Repository/DAO/ThirdParty/ThirdPartyRepo.cs b/Repository/DAO/ThirdParty/ThirdPartyRepo.cs index 2e2db2c..b01444a 100644 --- a/Repository/DAO/ThirdParty/ThirdPartyRepo.cs +++ b/Repository/DAO/ThirdParty/ThirdPartyRepo.cs @@ -1022,5 +1022,16 @@ namespace Repository.DAO.ThirdParty StringBuilder sb = new StringBuilder(sql); return ParseDbResult(sb); } + public void SyncTxnAsComment(string provider, string tranId, string ControlNo, string status, string msg) + { + string sql = "EXEC PROC_TP_TXN_PUSH @flag='add-job-txn-comment'"; + sql += ",@PROVIDER = " + FilterString(provider); + sql += ",@TRAN_ID = " + FilterString(tranId); + sql += ",@message = " + FilterString(msg); + sql += ",@status = " + FilterString(status); + sql += ",@user = " + FilterString("TxnPushJob"); + StringBuilder sb = new StringBuilder(sql); + ExecuteDataset(sb); + } } } \ No newline at end of file diff --git a/ThirdPartyAPIs/App_Data/Templates/PIN_PASSWORD_EMAIL.html b/ThirdPartyAPIs/App_Data/Templates/PIN_PASSWORD_EMAIL.html new file mode 100644 index 0000000..ef0b923 --- /dev/null +++ b/ThirdPartyAPIs/App_Data/Templates/PIN_PASSWORD_EMAIL.html @@ -0,0 +1,66 @@ + + + + +
+
+ IME London +
+
+
+ + +
+ Dear {CustomerName}, + +

+ Congratulations for registering with IME London. Your KYC has now been successfully verified. You can now send money via calling our customer support Team or can directly send money any time using our Mobile Application and Web Online System.
+ +

+ +

+ Please use the below credentials to send money via our Mobile application (IOS/Android) or Web online System, +

+ +

+ Login ID: {EMAIL_ID}
+ Password: {PASS_WORD}
+ Txn Pin: {PIN_NO}
+

+ +

+ Thank you,
+ IME London - Subhida UK Ltd +

+

+ Please login with this password and change it to a secure password including 1 uppercase 1 lowercase 1 special character 1 number with at least 8 characters for your security. +

+ +

+ You may call us at 0208-866-0307 or visit www.imelondon.co.uk
+

+

+ Nepal Helpline:- 014024061
+

+
+

+ Regards,
+ Customer Support Department
+ IME London
+ UK
+

+ + + +
+

+ + IME London is a trading name of Subhida UK Ltd, Pentax House, South Hill Avenue, South Harrow, London, HA2 0DU, Company Registration No: 06432399. + Subhida UK Ltd is authorized and regulated by the Financial Conduct Authority (FCA) under the Payment Service Regulations 2017, FCA Registration No: 576127, HMRC Registration No: XYML000000119350 + +

+ + + +
+ \ No newline at end of file