|
@ -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; |
|
|
|
|
|
|
|
|