Browse Source

add pcurrrate

prod
shakun 9 months ago
parent
commit
0e49ee6426
  1. 4
      GMENepal/GMENepal.csproj
  2. 25
      GMENepal/GMENepalAPIService/GMENepalAPI.cs
  3. 11
      Repository/DAO/ThirdParty/ThirdPartyRepo.cs
  4. 66
      ThirdPartyAPIs/App_Data/Templates/PIN_PASSWORD_EMAIL.html

4
GMENepal/GMENepal.csproj

@ -134,6 +134,10 @@
<Project>{d626fe23-51c8-4441-b3c7-92a54d1f572e}</Project>
<Name>Common</Name>
</ProjectReference>
<ProjectReference Include="..\Repository\Repository.csproj">
<Project>{3dede19d-6d7b-4825-b537-ccc7afc38f56}</Project>
<Name>Repository</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<WebReferences Include="Web References\" />

25
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";

11
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);
}
}
}

66
ThirdPartyAPIs/App_Data/Templates/PIN_PASSWORD_EMAIL.html

@ -0,0 +1,66 @@

<body>
<div style="color:#434444; padding: 15px; font-family: Roboto; font-size: 15px; margin-top: 20px">
<div style="text-align: right;">
<img src="https://japanremit.com/assets/img/jmelogo.jpg" alt="IME London" class="CToWUd" height="90">
</div>
<br />
<hr style="background-color: #fff; border-top: 1.5px solid #2B3C90; border-bottom: none;" />
<div class="body">
Dear <strong>{CustomerName}</strong>,
<p style="margin-top: 20px">
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. <br />
</p>
<p style="margin-top: 20px">
Please use the below credentials to send money via our Mobile application (IOS/Android) or Web online System,
</p>
<p style="margin-top: 20px">
Login ID: {EMAIL_ID}<br />
Password: {PASS_WORD}<br />
Txn Pin: {PIN_NO}<br />
</p>
<p>
Thank you,<br />
IME London - Subhida UK Ltd
</p>
<p style="margin-top: 20px">
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.
</p>
<p style="margin-top: 20px">
You may call us at <strong>0208-866-0307 </strong> or visit www.imelondon.co.uk <br />
</p>
<p style="margin-top: 20px">
Nepal Helpline:- <strong>014024061 </strong> <br />
</p>
</div>
<p style="margin-top: 20px;">
Regards, <br />
Customer Support Department <br />
IME London <br />
UK<br />
</p>
<hr style="background-color: #fff; border-top: 1.5px solid #2B3C90; border-bottom: none;" />
<p>
<b>
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
</b>
</p>
</div>
</body>
Loading…
Cancel
Save