Browse Source

Merge branch 'feature/19315_Customer-Registration' of http://202.166.220.79:3000/IME-LONDON/CustomerPortal into feature/19315_Customer-Registration

feature/19315_Customer-Registration
Leeza Baidar 12 months ago
parent
commit
00e64877d3
  1. 5
      CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/IRegisterBusiness.cs
  2. 5
      CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/RegisterBusiness.cs
  3. 1
      CustomerOnlineV2/CustomerOnlineV2.Common/Models/AccountModel/AccountModel.cs
  4. 1
      CustomerOnlineV2/CustomerOnlineV2.Common/Models/RegisterModel/UserRegisterResponse.cs
  5. 5
      CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/RegisterRepository/IRegisterRepository.cs
  6. 19
      CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/RegisterRepository/RegisterRepository.cs
  7. 12
      CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs
  8. 3
      CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs
  9. 70
      CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml
  10. 2
      CustomerOnlineV2/CustomerOnlineV2/Views/Shared/_Layout.cshtml
  11. 32
      CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/Payment.cshtml

5
CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/IRegisterBusiness.cs

@ -1,4 +1,5 @@
using CustomerOnlineV2.Common.Models.RegisterModel;
using CustomerOnlineV2.Common.Models;
using CustomerOnlineV2.Common.Models.RegisterModel;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -9,7 +10,7 @@ namespace CustomerOnlineV2.Business.Business.RegisterBusiness
{ {
public interface IRegisterBusiness public interface IRegisterBusiness
{ {
Task<OnlineCustomerRegisterModel> AddCustomers(OnlineCustomerRegisterModel register);
Task<CommonResponse> AddCustomers(OnlineCustomerRegisterModel register);
Task<AddressListResponse> GetAddressList(AddressRequest addressRequest); Task<AddressListResponse> GetAddressList(AddressRequest addressRequest);
} }
} }

5
CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/RegisterBusiness.cs

@ -1,4 +1,5 @@
using CustomerOnlineV2.Api.API.TPApi; using CustomerOnlineV2.Api.API.TPApi;
using CustomerOnlineV2.Common.Models;
using CustomerOnlineV2.Common.Models.RegisterModel; using CustomerOnlineV2.Common.Models.RegisterModel;
using CustomerOnlineV2.Repository.Repository.RegisterRepository; using CustomerOnlineV2.Repository.Repository.RegisterRepository;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
@ -26,9 +27,9 @@ namespace CustomerOnlineV2.Business.Business.RegisterBusiness
_registerRepository = registerRepository; _registerRepository = registerRepository;
} }
public async Task<OnlineCustomerRegisterModel> AddCustomers(OnlineCustomerRegisterModel register)
public async Task<CommonResponse> AddCustomers(OnlineCustomerRegisterModel register)
{ {
var model1 = await _registerRepository.GetRegisterDetails(register);
var model1 = await _registerRepository.AddRegisterDetails(register);
return model1; return model1;
} }

1
CustomerOnlineV2/CustomerOnlineV2.Common/Models/AccountModel/AccountModel.cs

@ -18,6 +18,7 @@ namespace CustomerOnlineV2.Common.Models.AccountModel
public class ForceChangePasswordModel public class ForceChangePasswordModel
{ {
public string? OldPassword { get; set; }
public string? NewPassword { get; set; } public string? NewPassword { get; set; }
public string? ConfirmNewPassword { get; set; } public string? ConfirmNewPassword { get; set; }
public string? IpAddress { get; set; } public string? IpAddress { get; set; }

1
CustomerOnlineV2/CustomerOnlineV2.Common/Models/RegisterModel/UserRegisterResponse.cs

@ -112,5 +112,6 @@ namespace CustomerOnlineV2.Common.Models.RegisterModel
public string? isActive { get; set; } public string? isActive { get; set; }
public string? islocked { get; set; } public string? islocked { get; set; }
public string? sessionId { get; set; } public string? sessionId { get; set; }
public string? AboutUs { get; set; }
} }
} }

5
CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/RegisterRepository/IRegisterRepository.cs

@ -1,4 +1,5 @@
using CustomerOnlineV2.Common.Models.RegisterModel;
using CustomerOnlineV2.Common.Models;
using CustomerOnlineV2.Common.Models.RegisterModel;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -9,6 +10,6 @@ namespace CustomerOnlineV2.Repository.Repository.RegisterRepository
{ {
public interface IRegisterRepository public interface IRegisterRepository
{ {
Task<OnlineCustomerRegisterModel> GetRegisterDetails(OnlineCustomerRegisterModel register);
Task<CommonResponse> AddRegisterDetails(OnlineCustomerRegisterModel register);
} }
} }

19
CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/RegisterRepository/RegisterRepository.cs

@ -19,7 +19,7 @@ namespace CustomerOnlineV2.Repository.Repository.RegisterRepository
_connHelper = connHelper; _connHelper = connHelper;
} }
public async Task<OnlineCustomerRegisterModel> GetRegisterDetails(OnlineCustomerRegisterModel model)
public async Task<CommonResponse> AddRegisterDetails(OnlineCustomerRegisterModel model)
{ {
try try
{ {
@ -35,7 +35,7 @@ namespace CustomerOnlineV2.Repository.Repository.RegisterRepository
sql += ",@middleName =" + _connHelper.FilterString(model.middleName); sql += ",@middleName =" + _connHelper.FilterString(model.middleName);
sql += ",@lastName1 =" + _connHelper.FilterString(model.lastName1); sql += ",@lastName1 =" + _connHelper.FilterString(model.lastName1);
sql += ",@lastName2 =" + _connHelper.FilterString(model.lastName2); sql += ",@lastName2 =" + _connHelper.FilterString(model.lastName2);
sql += ",@custAdd1 =" + _connHelper.FilterString(model.address);
//sql += ",@city =" + _connHelper.FilterString(model.city);
sql += ",@sourceOfFound =" + _connHelper.FilterString(model.sourceOfFound); sql += ",@sourceOfFound =" + _connHelper.FilterString(model.sourceOfFound);
sql += ",@custMobile =" + _connHelper.FilterString(model.mobile); sql += ",@custMobile =" + _connHelper.FilterString(model.mobile);
sql += ",@custGender =" + _connHelper.FilterString(model.gender); sql += ",@custGender =" + _connHelper.FilterString(model.gender);
@ -47,8 +47,9 @@ namespace CustomerOnlineV2.Repository.Repository.RegisterRepository
sql += ",@custDOB =" + _connHelper.FilterString(model.dob); sql += ",@custDOB =" + _connHelper.FilterString(model.dob);
sql += ",@occupation =" + _connHelper.FilterString(model.occupation); sql += ",@occupation =" + _connHelper.FilterString(model.occupation);
sql += ",@custNativecountry =" + _connHelper.FilterString(model.nativeCountry); sql += ",@custNativecountry =" + _connHelper.FilterString(model.nativeCountry);
//sql += ",@CreatedFrom =" + _connHelper.FilterString("O");
sql += ",@zipCode =" + _connHelper.FilterString(model.postalCode);
sql += ",@custAdd1 =" + _connHelper.FilterString(model.address);
sql += ",@custAdd2 =" + _connHelper.FilterString(model.address2);
@ -63,14 +64,16 @@ namespace CustomerOnlineV2.Repository.Repository.RegisterRepository
model.ResponseCode = ResponseHelper.FAILED; model.ResponseCode = ResponseHelper.FAILED;
model.ResponseMessage = "DB Null Error!"; model.ResponseMessage = "DB Null Error!";
} }
else
else if (dt.Rows[0]["ErrorCode"].Equals("0"))
{ {
model.ResponseCode = ResponseHelper.SUCCESS; model.ResponseCode = ResponseHelper.SUCCESS;
model.ResponseMessage = ResponseMessageHelper.SUCCESS; model.ResponseMessage = ResponseMessageHelper.SUCCESS;
}
else
{
model.ResponseCode = ResponseHelper.FAILED;
model.ResponseMessage = dt.Rows[0]["Msg"].ToString();
} }
} }
catch (Exception ex) catch (Exception ex)

12
CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs

@ -6,11 +6,8 @@ using CustomerOnlineV2.Common.Models.ReceiverModel;
using CustomerOnlineV2.Common.Models.RegisterModel; using CustomerOnlineV2.Common.Models.RegisterModel;
using CustomerOnlineV2.Common.Models.TransactionModel; using CustomerOnlineV2.Common.Models.TransactionModel;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.DotNet.Scaffolding.Shared.Messaging;
using Microsoft.Win32;
using Newtonsoft.Json; using Newtonsoft.Json;
using Serilog.Context; using Serilog.Context;
using System.Reflection;
namespace CustomerOnlineV2.Controllers namespace CustomerOnlineV2.Controllers
{ {
@ -39,20 +36,17 @@ namespace CustomerOnlineV2.Controllers
[HttpPost] [HttpPost]
[Authorization("AddCustomer")] [Authorization("AddCustomer")]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
public async Task<IActionResult> AddCustomer(OnlineCustomerRegisterModel register)
public async Task<CommonResponse> AddCustomer(OnlineCustomerRegisterModel register)
{ {
if (!ModelState.IsValid)
{
var register1 = await _registerBusiness.AddCustomers(register); var register1 = await _registerBusiness.AddCustomers(register);
return View("CustomerRegistation", register1);
}
return register1;
//return register1; //return register1;
//return register; //return register;
return RedirectToPage("Index");
//return RedirectToAction("Success"); //return RedirectToAction("Success");
} }

3
CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs

@ -95,6 +95,7 @@ namespace CustomerOnlineV2.Controllers
return View(_response); return View(_response);
} }
[Authorization("Payment")]
// [Authorization("SendMoney")] // [Authorization("SendMoney")]
public async Task<IActionResult> Payment([FromQuery] string id) public async Task<IActionResult> Payment([FromQuery] string id)
{ {
@ -110,7 +111,7 @@ namespace CustomerOnlineV2.Controllers
_request.sitereference = "test_subhidauk71992"; _request.sitereference = "test_subhidauk71992";
_request.stprofile = "default"; _request.stprofile = "default";
_request.currencyiso3a = "GBP"; _request.currencyiso3a = "GBP";
_request.orderreference = Guid.NewGuid().ToString();
_request.orderreference = _tranresponse.ControlNo;
_request.mainamount = _tranresponse.TotalToPay; _request.mainamount = _tranresponse.TotalToPay;
_request.billingfirstname = _tranresponse.Firstname; _request.billingfirstname = _tranresponse.Firstname;
_request.billinglastname = _tranresponse.Lastname1; _request.billinglastname = _tranresponse.Lastname1;

70
CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml

@ -16,6 +16,7 @@
<link href="~/vendor/owl.carousel/owl.carousel.min.css" rel="stylesheet" /> <link href="~/vendor/owl.carousel/owl.carousel.min.css" rel="stylesheet" />
<link href="~/css/styles-login.css" rel="stylesheet" /> <link href="~/css/styles-login.css" rel="stylesheet" />
<link href="~/vendor/toast-alert/izitoast.min.css" rel="stylesheet" /> <link href="~/vendor/toast-alert/izitoast.min.css" rel="stylesheet" />
<script src="~/js/custom.js"></script>
<link rel="icon" type="image/png" href="favicon.png" /> <link rel="icon" type="image/png" href="favicon.png" />
<style> <style>
input::-webkit-outer-spin-button, input::-webkit-outer-spin-button,
@ -37,7 +38,7 @@
<!-- Logo <!-- Logo
============================= --> ============================= -->
<div class="logo me-3"> <div class="logo me-3">
<a class="d-flex" href="index.html" title="Money - HTML Template">
<a class="d-flex" href="home/index" title="Money - HTML Template">
<img src="images/imelondon.svg" height="35" alt="IME London - Logo" /> <img src="images/imelondon.svg" height="35" alt="IME London - Logo" />
</a> </a>
</div> </div>
@ -52,8 +53,8 @@
<div id="header-nav" class="collapse navbar-collapse"> <div id="header-nav" class="collapse navbar-collapse">
<ul class="navbar-nav me-auto"> <ul class="navbar-nav me-auto">
<li><a href="faq.html">Help</a></li>
<li><a href="how-it-works.html">How It Works</a></li>
<li><a href="https://imelondon.co.uk/faqs" target="_blank">Help</a></li>
<li><a href="https://imelondon.co.uk/how-it-works" target="_blank">How It Works</a></li>
<li><a href="#">Register Now</a></li> <li><a href="#">Register Now</a></li>
</ul> </ul>
</div> </div>
@ -162,7 +163,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-4">
@* <div class="col-md-4">
<div class="mb-4"> <div class="mb-4">
<div class="form-floating"> <div class="form-floating">
<input type="password" class="form-control" asp-for="Password"> <input type="password" class="form-control" asp-for="Password">
@ -170,7 +171,7 @@
<label for="floatingPassword">Password</label> <label for="floatingPassword">Password</label>
</div> </div>
</div> </div>
</div>
</div> *@
<div class="col-md-4"> <div class="col-md-4">
<div class="mb-4"> <div class="mb-4">
<div class="form-floating"> <div class="form-floating">
@ -310,7 +311,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-4">
@* <div class="col-md-4">
<div class="mb-4"> <div class="mb-4">
<div class="form-floating"> <div class="form-floating">
<input type="text" class="form-control" id="CountryAddress1" placeholder="Address 1" asp-for="address"> <input type="text" class="form-control" id="CountryAddress1" placeholder="Address 1" asp-for="address">
@ -325,14 +326,14 @@
<label for="CountryAddress2">Address 2</label> <label for="CountryAddress2">Address 2</label>
</div> </div>
</div> </div>
</div>
</div> *@
<div class="col-md-4"> <div class="col-md-4">
<div class="mb-4"> <div class="mb-4">
<div class="form-floating"> <div class="form-floating">
<div class="input-group flex-nowrap"> <div class="input-group flex-nowrap">
<div class="form-floating flex-grow-1"> <div class="form-floating flex-grow-1">
<input type="text" class="form-control" id="PostalZipCode" placeholder="Postal/Zip Code" asp-for="postalCode">
<label for="PostalZipCode">Postal/Zip Code</label>
<input type="text" class="form-control" placeholder="Postal/Zip Code" asp-for="postalCode">
<label for="postalCode">Postal/Zip Code</label>
</div> </div>
<span class="input-group-text px-2"> <span class="input-group-text px-2">
<button class="btn-choose bg-transparent text-white border-0" id="btnSearch" type="button">Lookup</button> <button class="btn-choose bg-transparent text-white border-0" id="btnSearch" type="button">Lookup</button>
@ -341,7 +342,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="apiDataPopup" class="modal fade" role="dialog">
<div id="apiDataPopup" class="modal" role="dialog">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
@ -362,7 +363,7 @@
</table> </table>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Close</button>
</div> </div>
</div> </div>
</div> </div>
@ -370,16 +371,16 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="mb-4"> <div class="mb-4">
<div class="form-floating"> <div class="form-floating">
<input type="text" class="form-control" id="Address1" placeholder="Address 1">
<label for="Address1">Address 1</label>
<input type="text" class="form-control" placeholder="Address 1" asp-for="address">
<label for="address">Address 1</label>
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="mb-4"> <div class="mb-4">
<div class="form-floating"> <div class="form-floating">
<input type="text" class="form-control" id="Address2" placeholder="Address 2">
<label for="Address2">Address 2</label>
<input type="text" class="form-control" placeholder="Address 2" asp-for="address2">
<label for="address2">Address 2</label>
</div> </div>
</div> </div>
</div> </div>
@ -463,7 +464,7 @@
<div class="mb-4"> <div class="mb-4">
<div class="form-check d-flex align-items-center"> <div class="form-check d-flex align-items-center">
<input class="form-check-input me-2" type="checkbox" id="Terms"> <input class="form-check-input me-2" type="checkbox" id="Terms">
<label class="form-check-label" for="Terms">I agree to IME London <a href="#" target="_blank">Terms &amp; Conditions</a> and <a href="#" target="_blank">Privacy Policy</a>.</label>
<label class="form-check-label" for="Terms">I agree to IME London <a href="https://imelondon.co.uk/terms-and-conditions" target="_blank">Terms &amp; Conditions</a> and <a href="https://imelondon.co.uk/privacy-policy" target="_blank">Privacy Policy</a>.</label>
</div> </div>
</div> </div>
</div> </div>
@ -472,7 +473,8 @@
@* <button class="btn btn-lg btn-primary" type="submit">Register <i class="fa fa-window-maximize px-2" aria-hidden="true"></i></button> *@ @* <button class="btn btn-lg btn-primary" type="submit">Register <i class="fa fa-window-maximize px-2" aria-hidden="true"></i></button> *@
<button type="submit" id="BtnRegister" class="btn btn-lg btn-primary" style="width: 250px;"> <button type="submit" id="BtnRegister" class="btn btn-lg btn-primary" style="width: 250px;">
<span class="RegisterText">Register</span>&nbsp;<div class="spinner-border text-success loading" role="status" style="display:none;"></div> </button>
<span class="RegisterText">Register</span>&nbsp;<div class="spinner-border text-success loading" role="status" style="display:none;"></div>
</button>
</div> </div>
</div> </div>
</div> </div>
@ -480,7 +482,7 @@
<div class="mt-3"> Already registered ? <a class="" href="login-new.html">Login Now</a></div>
<div class="mt-3"> Already registered ? <a class="" href="account/index">Login Now</a></div>
</div> </div>
</div> </div>
@ -539,7 +541,7 @@
<script src="~/vendor/owl.carousel/owl.carousel.min.js"></script> <script src="~/vendor/owl.carousel/owl.carousel.min.js"></script>
<script src="~/js/script.js"></script> <script src="~/js/script.js"></script>
<script src="~/vendor/toast-alert/izitoast.min.js"></script> <script src="~/vendor/toast-alert/izitoast.min.js"></script>
<script src="~/js/register-validation.js"></script>
@* <script src="~/js/register-validation.js"></script> *@
<script type="text/javascript"> <script type="text/javascript">
@ -571,8 +573,7 @@ $(document).ready(function () {
debugger; debugger;
$('#btnSearch').click(function (e) { $('#btnSearch').click(function (e) {
e.preventDefault(); e.preventDefault();
e.preventDefault();
var postalCode = $('#PostalZipCode').val();
var postalCode = $('#postalCode').val();
if (!postalCode || postalCode == "" || postalCode == null) { if (!postalCode || postalCode == "" || postalCode == null) {
alert("Postal cannot be empty"); alert("Postal cannot be empty");
@ -611,8 +612,8 @@ $(document).ready(function () {
$('#hdnAdditionalAddress').val(additionalAddress); $('#hdnAdditionalAddress').val(additionalAddress);
$('#cityHidden').val(city); $('#cityHidden').val(city);
$('#Address1').val(additionalAddress);
$('#Address2').val(city);
$('#address').val(additionalAddress);
$('#address2').val(city);
$('#apiDataPopup').modal('hide'); $('#apiDataPopup').modal('hide');
event.preventDefault(); event.preventDefault();
}); });
@ -650,7 +651,7 @@ $(document).ready(function () {
if (passwordRegex.test(password)) { if (passwordRegex.test(password)) {
passwordValidation.text("Valid password").css("color", "green"); passwordValidation.text("Valid password").css("color", "green");
} else { } else {
passwordValidation.text("Invalid password").css("color", "red");
passwordValidation.text("Password should contain at least one special character (*&%$), one uppercase, one lowercase and min of 8 characters").css("color", "red");
} }
}); });
@ -716,10 +717,12 @@ $(document).ready(function () {
let customerPassword = $('#customerPassword').val(); let customerPassword = $('#customerPassword').val();
let postalCode = $('#postalCode').val();
let address = $('#address').val(); let address = $('#address').val();
let address2 = $('#address2').val();
let idIssueDate = $('#idIssueDate').val(); let idIssueDate = $('#idIssueDate').val();
let idExpiryDate = $('#idExpiryDate').val(); let idExpiryDate = $('#idExpiryDate').val();
let aboutus = $('#AboutUS').val();
let Data = { let Data = {
@ -736,17 +739,14 @@ $(document).ready(function () {
mobile: mobile, mobile: mobile,
telNo: telNo, telNo: telNo,
occupation: occupation, occupation: occupation,
address: address, address: address,
address2: address2,
idIssueDate: idIssueDate, idIssueDate: idIssueDate,
idExpiryDate: idExpiryDate, idExpiryDate: idExpiryDate,
Password: Password, Password: Password,
ConfirmPassword: ConfirmPassword, ConfirmPassword: ConfirmPassword,
customerPassword: customerPassword,
postalCode: postalCode,
AboutUs: aboutus
}; };
$.ajax( $.ajax(
@ -762,6 +762,8 @@ $(document).ready(function () {
}, },
async: true, async: true,
success: function (response) { success: function (response) {
EnableRegisterButton(); EnableRegisterButton();
if (response.responseCode != 0) { if (response.responseCode != 0) {
ShowAlertMessage(response.responseCode, response.responseMessage); ShowAlertMessage(response.responseCode, response.responseMessage);
@ -771,6 +773,10 @@ $(document).ready(function () {
} }
window.location.replace("/account/index");
ShowAlertMessage(response.responseCode, response.responseMessage);
// clearFields(); // clearFields();
// $('#Country').focus(); // $('#Country').focus();
@ -816,7 +822,7 @@ $(document).ready(function () {
} }
function EnableRegisterButton() { function EnableRegisterButton() {
debugger;
$('.RegisterText').show(); $('.RegisterText').show();
$('#BtnRegister').css('cursor', 'pointer'); $('#BtnRegister').css('cursor', 'pointer');
$('.loadingSend').hide(); $('.loadingSend').hide();

2
CustomerOnlineV2/CustomerOnlineV2/Views/Shared/_Layout.cshtml

@ -154,7 +154,7 @@
<i class="fas fa-edit"></i> <i class="fas fa-edit"></i>
</a> </a>
<div class=""> <div class="">
<a href="document-upload.html" class="px-1 text-3">Upload Documents</a>|<a href="profile.html" class="px-1 text-3">Edit Profile</a>
<a href="/CustomerDocument/CustomerDocument" class="px-1 text-3">Upload Documents</a>|<a href="profile.html" class="px-1 text-3">Edit Profile</a>
</div> </div>
</p> </p>

32
CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/Payment.cshtml

@ -4,10 +4,39 @@
<head> <head>
<style>
.loader {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background: url('/images/loading.gif') 50% 50% no-repeat rgb(249,249,249);
}
</style>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script>
$(document).ready(function () {
//Id of your button control either it is server control or simple html control
$(".loader").fadeOut("slow");
$("[id*='btn_submit']").click();
});
</script>
</head> </head>
<body> <body>
<div class="loader"></div>
<form id="Customer-form" method="post" action="https://payments.securetrading.net/process/payments/choice"> <form id="Customer-form" method="post" action="https://payments.securetrading.net/process/payments/choice">
<input asp-for="sitereference" name="sitereference" type="hidden" /> <input asp-for="sitereference" name="sitereference" type="hidden" />
<input asp-for="stprofile" name="stprofile" value="default" type="hidden" /> <input asp-for="stprofile" name="stprofile" value="default" type="hidden" />
@ -43,7 +72,8 @@
<input asp-for="sitesecurity" name="sitesecurity" type="hidden" /> <input asp-for="sitesecurity" name="sitesecurity" type="hidden" />
<input asp-for="merchantemail" name="merchantemail" value="shakun@japanremit.com" type="hidden" /> <input asp-for="merchantemail" name="merchantemail" value="shakun@japanremit.com" type="hidden" />
<input type="submit" id="btn_submit" />
@Html.AntiForgeryToken()
<input type="submit" id="btn_submit" style="display:none;" />
</form> </form>
@* <form method="POST" action="https://payments.securetrading.net/process/payments/choice"> @* <form method="POST" action="https://payments.securetrading.net/process/payments/choice">
<input type="hidden" name="version" value="2"> <input type="hidden" name="version" value="2">

Loading…
Cancel
Save