Browse Source

Color code

Mobile-pdf
shakun 11 months ago
parent
commit
a04746a616
  1. 13
      Business/SendMoney/SendMoneyBusiness.cs
  2. 2
      JsonRx/Api/MobileController.cs
  3. 4006
      JsonRx/Config/ResponseMsg.json
  4. 3
      JsonRx/Web.config
  5. 2
      Repository/Mobile/MobileServicesRepo.cs
  6. 38
      Repository/MobileV2/MobileV2Repo.cs

13
Business/SendMoney/SendMoneyBusiness.cs

@ -522,16 +522,21 @@ namespace Business.SendMoney
//var randomPassword = PasswordGenerator.GenerateRandomPassword(new PasswordGenerator.PasswordOptions() //var randomPassword = PasswordGenerator.GenerateRandomPassword(new PasswordGenerator.PasswordOptions()
//{ RequireDigit = true, RequiredLength = 10, RequiredUniqueChars = 2, RequireLowercase = true, RequireNonAlphanumeric = true, RequireUppercase = true }); //{ RequireDigit = true, RequiredLength = 10, RequiredUniqueChars = 2, RequireLowercase = true, RequireNonAlphanumeric = true, RequireUppercase = true });
string eID = HttpUtility.UrlEncode( AesOperation.EncryptString(ConfigurationManager.AppSettings["encryptKey"].ToString(), result.Id));
string eID = HttpUtility.UrlEncode(AesOperation.EncryptString(ConfigurationManager.AppSettings["encryptKey"].ToString(), result.Id));
string eCn = HttpUtility.UrlEncode(AesOperation.EncryptString(ConfigurationManager.AppSettings["encryptKey"].ToString(), result.Extra)); string eCn = HttpUtility.UrlEncode(AesOperation.EncryptString(ConfigurationManager.AppSettings["encryptKey"].ToString(), result.Extra));
var trustpaymentCallback = ApplicationConfig.ReadWebConfig("trustpaymentCallback");
var trustpaymentSuccess = ApplicationConfig.ReadWebConfig("trustpaymentSuccess");
var trustpaymentFail = ApplicationConfig.ReadWebConfig("trustpaymentFail");
Gateway gateway = new Gateway() Gateway gateway = new Gateway()
{ {
Code = result.Extra2, Code = result.Extra2,
IsRedirect = result.Extra3.Equals("Y") ? true : false, IsRedirect = result.Extra3.Equals("Y") ? true : false,
//Token = randomPassword, //Token = randomPassword,
RedirectURL = result.Extra3.Equals("Y") ? $"https:////uat.imelondon.co.uk:1081/payment/STPaymentCustomerRedirect.aspx?id={eID}&ref={response.Extra4}&cn={response.Extra}&token=" : "",
CheckSuccessURL = result.Extra3.Equals("Y") ? "https://uat.imelondon.co.uk:1081/payment/STPaymentSuccess.aspx" : "",
CheckFailURL = result.Extra3.Equals("Y") ? "https://uat.imelondon.co.uk:1081/payment/STPaymentFail.aspx" : ""
RedirectURL = result.Extra3.Equals("Y") ? $"{trustpaymentCallback}?id={eID}&ref={response.Extra4}&cn={eCn}&token=" : "",
CheckSuccessURL = result.Extra3.Equals("Y") ? trustpaymentSuccess : "",
CheckFailURL = result.Extra3.Equals("Y") ? trustpaymentFail : ""
}; };
response.Data = gateway; response.Data = gateway;

2
JsonRx/Api/MobileController.cs

@ -335,7 +335,7 @@ namespace JsonRx.Api
LogicalThreadContext.Properties[LoggerProperty.PROCESSID] = Guid.NewGuid(); LogicalThreadContext.Properties[LoggerProperty.PROCESSID] = Guid.NewGuid();
LogicalThreadContext.Properties[LoggerProperty.CREATEDBY] = userId; LogicalThreadContext.Properties[LoggerProperty.CREATEDBY] = userId;
LogicalThreadContext.Properties[LoggerProperty.METHODNAME] = "walletstatement"; LogicalThreadContext.Properties[LoggerProperty.METHODNAME] = "walletstatement";
Log.Debug("GetWalletStatement | REQUEST : " + userId);
Log.Debug("GetWalletStatement | REQUEST : " + userId + "|" + JsonConvert.SerializeObject(search));
JsonRxResponse walletStatement = new JsonRxResponse(); JsonRxResponse walletStatement = new JsonRxResponse();
if (string.IsNullOrEmpty(userId)) if (string.IsNullOrEmpty(userId))
{ {

4006
JsonRx/Config/ResponseMsg.json
File diff suppressed because it is too large
View File

3
JsonRx/Web.config

@ -100,6 +100,9 @@
<!--TrustPayment--> <!--TrustPayment-->
<add key="sitereference" value="test_subhidauk71992" /> <add key="sitereference" value="test_subhidauk71992" />
<add key="encryptKey" value="39d37440c89b668fc422fbadcd541bb8" /> <add key="encryptKey" value="39d37440c89b668fc422fbadcd541bb8" />
<add key="trustpaymentCallback" value="https://uat.imelondon.co.uk:1081/payment/STPaymentCustomerRedirect.aspx" />
<add key="trustpaymentSuccess" value="https://uat.imelondon.co.uk:1081/payment/STPaymentSuccess.aspx" />
<add key="trustpaymentFail" value="https://uat.imelondon.co.uk:1081/payment/STPaymentFail.aspx" />
</appSettings> </appSettings>
<!-- <!--

2
Repository/Mobile/MobileServicesRepo.cs

@ -1022,7 +1022,7 @@ namespace Repository.Mobile
AccountNo = "00000151", AccountNo = "00000151",
BankName = "Clear bank", BankName = "Clear bank",
Instruction = "Payment Reference Should be your name . Should you require any assitance, IME team is happy to help. You can track from Home ", Instruction = "Payment Reference Should be your name . Should you require any assitance, IME team is happy to help. You can track from Home ",
TotalToPay = GetStatic.ShowDecimal(sRow["tAmt"].ToString()) + " " + sRow["collCurr"].ToString(),
TotalToPay = GetStatic.ShowDecimal(sRow["cAmt"].ToString()) + " " + sRow["collCurr"].ToString(),
Reference = sRow["senderName"].ToString(), Reference = sRow["senderName"].ToString(),
SortCode = " 04-06-93" SortCode = " 04-06-93"
} }

38
Repository/MobileV2/MobileV2Repo.cs

@ -209,26 +209,26 @@ namespace Repository.MobileV2
} }
private string GetColorCode(string status) private string GetColorCode(string status)
{ {
//if (status.Equals("AWAITING PAYMENT") || status.Equals("PENDING"))
//{
// return "#514e82";
//}
//else if (status.Equals("PROCESSING"))
//{
// return "#AF804F";
//}
//else if (status.Equals("PAID"))
//{
// return "#008000";
//}
//else if (status.Equals("CANCELLED"))
//{
// return "#FF0000";
//}
//else
// return "#514e82";
if (status.Equals("AWAITING PAYMENT") || status.Equals("PENDING"))
{
return "#514e82";
}
else if (status.Equals("PROCESSING"))
{
return "#AF804F";
}
else if (status.Equals("PAID"))
{
return "#008000";
}
else if (status.Equals("CANCELLED"))
{
return "#FF0000";
}
else
return "#514e82";
return "#FF0000";
// return "#FF0000";
} }

Loading…
Cancel
Save