Browse Source

Fix for GME Nepal

prod
shakun 11 months ago
parent
commit
8dca061133
  1. 2
      Business/BusinessLogic/Address/ServiceApi.cs
  2. 36
      GMENepal/GMENepalAPIService/GMENepalAPI.cs
  3. 37
      ThirdPartyAPIs/App_Data/Templates/BASIC_REGISTRATION_EMAIL.html
  4. 12
      ThirdPartyAPIs/Web.config

2
Business/BusinessLogic/Address/ServiceApi.cs

@ -56,7 +56,7 @@ namespace Business.BusinessLogic.Address
TPResponse rxResponse = new TPResponse() { ResponseCode = "1", Msg = "No Data found" };
var results = serviceApi.Find_v1_10(postCode);
Log.Debug(Newtonsoft.Json.JsonConvert.SerializeObject(results));
//Log.Debug(Newtonsoft.Json.JsonConvert.SerializeObject(results));
if (results != null && results.Any())
{

36
GMENepal/GMENepalAPIService/GMENepalAPI.cs

@ -94,7 +94,7 @@ namespace GMENepal.GMENepalAPIService
if (accValidate.BankCode.ToLower() == "imepay" || accValidate.BankCode.ToLower() == "khalti")
{
WalletUserDetailResponse walletResponse = _fastMoneyWeb.GetWalletDetails(PartnerId, UserName, Password, accValidate.BankCode.ToUpper()
, accValidate.AccountNumber,"", GetAccValidateSignature(accValidate));
, accValidate.AccountNumber, "", GetAccValidateSignature(accValidate));
response.ErrorCode = walletResponse.ResponseCode;
response.Msg = walletResponse.ResponseMessage;
response.Extra = walletResponse.FullName;
@ -103,7 +103,7 @@ namespace GMENepal.GMENepalAPIService
else
{
response = _fastMoneyWeb.AccountValidation(UserName, Password, accValidate.BankCode, accValidate.AccountNumber
, accValidate.ReceiverName,"");
, accValidate.ReceiverName, "");
}
_log.Info("AccountValidation | RESPONSE :" + JsonConvert.SerializeObject(response).ToString());
@ -237,34 +237,34 @@ namespace GMENepal.GMENepalAPIService
string dateTxn = dt[1] + "-" + dt[2] + "-" + dt[0];
_log.Info("SendTransaction | REQUEST :" + JsonConvert.SerializeObject(gS).ToString());
if(gS.PaymentMethod.ToLower() == "cash payment")
if (gS.PaymentMethod.ToLower() == "c")
{
_response = new TPResponse();
var exRate = _fastMoneyWeb.GetCalculation(
gS.PartnerId, gS.UserName, gS.Password, gS.SessionId, "",
gS.SendingAmount, gS.PaymentMethod, gS.BeneCountry, gS.CalculateBy
"1000", "C", gS.BeneCountry, "P"
);
_log.Info("GetExRate | RESPONSE :" + JsonConvert.SerializeObject(model).ToString());
var exConfirmId = exRate.ExConfirmId;
sendMoneyRes = _fastMoneyWeb.SendMoney(PartnerId, UserName, Password, gS.SessionId, exConfirmId, gS.MembershipId, gS.CustomerName, gS.CustomerAddress,
sendMoneyRes = _fastMoneyWeb.SendMoney(PartnerId, UserName, Password, gS.ControlNo, exConfirmId, gS.MembershipId, gS.CustomerName, gS.CustomerAddress,
gS.CustomerContact, gS.CustomerCity, gS.CustomerCountry, gS.CustomerIdType, gS.CustomerIdNumber, gS.BeneName, gS.BeneAddress, gS.BeneContact, gS.BeneCity
, gS.BeneCountry, gS.Profession, gS.IncomeSource, gS.Relationship, gS.PurposeOfRemittance, gS.SendingAmount, gS.ReceivingAmount, gS.PaymentMethod
, gS.BankCode, gS.BankName, gS.BankBranchName, gS.BankAccountNumber, gS.TransactionDate, gS.CalculateBy, gS.FreeCharge);
_log.Info("SendTransaction | RESPONSE :" + JsonConvert.SerializeObject(model).ToString());
, gS.BankCode, gS.BankName, gS.BankBranchName, gS.BankAccountNumber, dateTxn, gS.CalculateBy, gS.FreeCharge);
_log.Info("SendTransaction | RESPONSE :" + JsonConvert.SerializeObject(sendMoneyRes).ToString());
_response.ResponseCode = sendMoneyRes.ErrorCode;
_response.Msg = sendMoneyRes.Message;
_response.Extra = sendMoneyRes.ExRate;
_response.Extra2 = sendMoneyRes.SendingAmount;
_response.Id = sendMoneyRes.ReceivingAmount;
_response.Extra = exRate.UsdVsNpr;
_response.Extra2 = sendMoneyRes.PinNo;
_response.Id = sendMoneyRes.TranId;
_response.Data = sendMoneyRes;
return _response;
}
if (gS.BankCode.ToLower() == "imepay" || gS.BankCode.ToLower() == "khalti")
else if (gS.PaymentMethod.ToLower() == "w" && (gS.BankCode.ToLower() == "imepay" || gS.BankCode.ToLower() == "khalti"))
{
model = _fastMoneyWeb.RealTimeWalletDeposit(PartnerId, UserName, Password, gS.BankCode, gS.CustomerName, gS.CustomerAddress
, gS.CustomerContact, gS.CustomerCountry, gS.CustomerIdType, gS.CustomerIdNumber, gS.BeneName, gS.BeneAddress
@ -274,19 +274,23 @@ namespace GMENepal.GMENepalAPIService
}
else
{
model = _fastMoneyWeb.ProcessBankDeposit(gS.PartnerId, gS.UserName, gS.Password, gS.ControlNo, gS.ExConfirmId
var exRateBank = _fastMoneyWeb.GetCalculation(gS.PartnerId, gS.UserName, gS.Password, gS.SessionId, "", "1000", "B", gS.BeneCountry, "P");
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
, gS.CustomerIdType, gS.CustomerIdNumber, gS.BeneName, gS.BeneAddress, gS.BeneContact, gS.BeneCity, gS.BeneCountry, gS.Profession
, gS.IncomeSource, gS.Relationship, gS.PurposeOfRemittance, gS.SendingAmount, gS.ReceivingAmount, gS.PaymentMethod, gS.BankCode
, gS.BankName, gS.BankAccountNumber, dateTxn, gS.CalculateBy, gS.FreeCharge, gS.ControlNo, gS.PayoutCurrency, gS.ReceiverCostRate
, gS.SenderCostRate, gS.Signature,"");
, gS.SenderCostRate, gS.Signature, "");
_response.Extra = exRateBank.ExRate;
}
_log.Info("SendTransaction | RESPONSE :" + JsonConvert.SerializeObject(model).ToString());
_response.ResponseCode = model.ErrorCode;
_response.Msg = model.Msg;
_response.Extra = model.Extra;
_response.Extra2 = model.Extra2;
_response.Id = model.Id;
_response.Data = model;
@ -430,7 +434,7 @@ namespace GMENepal.GMENepalAPIService
return new GMEGetCalculationRequest()
{
CalculateBy = eR.CalcBy,
PaymentMethod = eR.PaymentType=="Wallet" ? "W": eR.PaymentType,
PaymentMethod = eR.PaymentType == "Wallet" ? "W" : eR.PaymentType,
ReceivingAgentId = eR.PAgentName,
ReceivingCountry = eR.PCountryName,
RemitAmount = eR.CalcBy == "C" ? eR.CAmount.ToString() : eR.PAmount.ToString()
@ -485,7 +489,7 @@ namespace GMENepal.GMENepalAPIService
{
string sign = "";
if (sT.Agent.PBankId.ToLower() == "imepay" || sT.Agent.PBankId.ToLower() == "khalti")
sign = GMEKey +PartnerId + UserName + Password + sT.Receiver.RAccountNo + sT.Transaction.PAmt;
sign = GMEKey + PartnerId + UserName + Password + sT.Receiver.RAccountNo + sT.Transaction.PAmt;
else
sign = GMEKey + UserName + Password + sT.Transaction.JMEControlNo + sT.Transaction.PAmt + sT.Receiver.RAccountNo + sT.Agent.PBankId;

37
ThirdPartyAPIs/App_Data/Templates/BASIC_REGISTRATION_EMAIL.html

@ -13,42 +13,7 @@
<div class="body">
Dear <strong>{CustomerName}</strong>,
<p style="margin-top: 20px">
Thank you for registering with IME London. We are overjoyed to have you join our community of users from around the world who are streamlining and improving the way they send and receive money internationally. <br />
Prepare yourself for a never-before-seen level of rapid, secure, and convenient remittance. <br />
</p>
<p style="margin-top: 20px">
<b>You can now start sending money to your loved ones. </b><br />
</p>
<p style="margin-top: 20px">
<b>Please use the Referral CODE XXXX to Invite your friends and get 10 £ as our signing gift. </b><br />
** Terms and Condition applied
</p>
<p style="margin-top: 20px">
<b>Your account details: </b><br />
<ol style=" list-style-type: none; /* Remove bullets */ padding: 0; /* Remove padding */ margin-left: 30px; /* Remove margins */">
<li>Customer ID: {CustomerId} </li>
<li>User ID: {UserId} </li>
<li>First Name: {FirstName} </li>
<li>Middle Name: {MiddleName} </li>
<li>Last Name: {LastName} </li>
<li>Mobile Number: {MobileNo} </li>
<li>Address: {Address}</li>
<li>Email: {EMAIL_ID}</li>
<li>Registered Date: {RegisteredDate}</li>
</ol>
</p>
<p style="margin-top: 20px">
We appreciate your decision to choose IME London to transform the way you manage international money transfers. Your path to smooth remittance begins right now! <br />
</p>
</div>
<p style="margin-top: 20px;">
Thank you! <br />
<{{{tanble>
IME London Team <br />
</p>

12
ThirdPartyAPIs/Web.config

@ -15,8 +15,10 @@
<!--<add name="LOGDB" connectionString="server=192.168.53.21\MSSQLSERVER01,9097;Database=Logdb;uid=user_stag;pwd=P@ssw0rd;" providerName="System.Data.SqlClient" />
<add name="apiConnection" connectionString="server=192.168.53.21\MSSQLSERVER01,9097;Database=FastMoneyPro_Remit;uid=user_stag;pwd=P@ssw0rd;" providerName="System.Data.SqlClient" />-->
<add name="apiConnection" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=FastMoneyPro_Remit;uid=sa;pwd=DbAmin123" providerName="System.Data.SqlClient" />
<add name="LOGDB" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=LogDb;uid=sa;pwd=DbAmin123" providerName="System.Data.SqlClient" />
<!--<add name="apiConnection" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=FastMoneyPro_Remit;uid=sa;pwd=DbAmin123" providerName="System.Data.SqlClient" />
<add name="LOGDB" connectionString="server=77.68.15.91\MSSQLSERVER01,1434;Database=LogDb;uid=sa;pwd=DbAmin123" providerName="System.Data.SqlClient" />-->
<add name="apiConnection" connectionString="server=77.68.90.58,1433;Database=FastMoneyPro_Remit;uid=remituser;pwd=U78SclK6" providerName="System.Data.SqlClient" />
<add name="LOGDB" connectionString="server=77.68.90.58,1433;Database=LogDb;uid=remituser;pwd=U78SclK6" providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="apiAccessKey" value="KPb1ttRs3CJnORpVU8SmAKUs7a42vtvjzQ47gU0b4u0vxAEI0PgZref6puzkVhLTX2PRNMGCbnb2TglupsjV5AGhYvw8a8POTcUcFSrEdHmTkhkIGNvUvxSpKjUOXGFQWaGU1bxoqqUSaFOmNE5zGojVmwPoMy38CNLwnpQKjdsIuxCKGCApa2gWHJl9gebmIpUODv9jAZgmMEaXqyR4CLg4iSksfTyYNjdqxEE88P5THYt5GuNk8Ti6K2RxIKfPWY49hBOpiYnXcApgSDiKFYqQG9WuZ7cvDGJIWg5WgWKjGle8Y3OydhONXVkN5OMPXDA4VZkK4c5nM363Zkg4w4qdzWuwhsEoAwU4rej6sMRZue3L0BowBJja1OK0iPoTX70EexX8rviMLOZPUDwhxzkL3eODS69VEEbjHb8WSjhho5h3KnCE4tcqCWihwSZ8Yuyhw1rzIMNw2C8pN1GEJyXc6goIFkf7dmK9ynJSxu52D9GjOkKqoD7dFNFulOFVfgeCuhPDYG2A2c2RSvGHv24VDXvmGVaAMLiPtsTz5oD8f0na7fX1xGg0Qveh0KgQL5THnrMK6gm5Ky7O8nbecIxY" />
@ -51,9 +53,9 @@
<add key="gme_key" value="uat#@$#%L*RDT@QS!|{}98)SDD1972200AsedF@#D!{]\+_)p@#$%WEDCA@@$$^%$$" />-->
<!--GME NEPAL API-->
<add key="gme_user_name" value="subidharemit" />
<add key="gme_user_name" value="SubidhaSendAPI" />
<add key="gme_password" value="Stag@2023" />
<add key="gme_partnerId" value="BRNNP14995" />
<add key="gme_partnerId" value="BRNNP9943" />
<add key="gme_key" value="uat#@$#%L*RDT@QS!|{}98)SDD1972200AsedF@#D!{]\+_)p@#$%WEDCA@@$$^%$$" />
@ -101,7 +103,7 @@
<add key="onewaysmsURLStatus" value="http://gateway.onewaysms.jp:10001/bulktrx.aspx" />
<add key="onewaysmsUserName" value="Vy5Vkw" />
<add key="onewaysmsPassword" value="rmDMff" />
<add key="onewaysmsSenderId" value="TextMessage" />
<add key="onewaysmsSenderId" value="IME London" />
<add key="onewaysmsLangType" value="1" />
<!--DongaV2 API UAT--><!--

Loading…
Cancel
Save