Browse Source

trust payment

feature/19315_Customer-Registration-new
shakun 12 months ago
parent
commit
32b3abfa55
  1. 43
      CustomerOnlineV2/CustomerOnlineV2.Common/Models/TransactionModel/TrustPaymentRequest.cs
  2. 51
      CustomerOnlineV2/CustomerOnlineV2/Views/Customer/Success.cshtml
  3. 88
      CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/Payment.cshtml
  4. 8
      CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/SendMoney.cshtml
  5. 50
      CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/TranDecline.cshtml
  6. 50
      CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/TranPaySuccess.cshtml

43
CustomerOnlineV2/CustomerOnlineV2.Common/Models/TransactionModel/TrustPaymentRequest.cs

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CustomerOnlineV2.Common.Models.TransactionModel
{
public class TrustPaymentRequest
{
public string? sitereference { get; set; }
public string? stprofile { get; set; }
public string? currencyiso3a { get; set; }
public string? mainamount { get; set; }
public string? version { get; set; }
public string? request_source { get; set; }
public string? orderreference { get; set; }
public string? billingfirstname { get; set; }
public string? billinglastname { get; set; }
public string? billingstreet { get; set; }
public string? customerpremise { get; set; }
public string? customerstreet { get; set; }
public string? billingpostcode { get; set; }
public string? customerpostcode { get; set; }
public string? billingtown { get; set; }
public string? customertown { get; set; }
public string? billingcountryiso2a { get; set; }
public string? customercountryiso2a { get; set; }
public string? custobillingtelephonemertown { get; set; }
public string? customertelephone { get; set; }
public string? billingtelephone { get; set; }
public string? billingemail { get; set; }
public string? customeremail { get; set; }
public string? successfulurlredirect { get; set; }
public string? declinedurlredirect { get; set; }
public string? sitesecuritytimestamp { get; set; }
public string? sitesecurity { get; set; }
public string? ruleidentifier { get; set; }
public string? merchantemail { get; set; }
}
}

51
CustomerOnlineV2/CustomerOnlineV2/Views/Customer/Success.cshtml

@ -0,0 +1,51 @@

@{
Layout = null;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="~/" />
<link href="~/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="~/vendor/font-awesome/css/all.min.css" rel="stylesheet" />
<link href="~/vendor/bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet" />
<link href="~/vendor/currency-flags/css/currency-flags.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="~/vendor/toast-alert/izitoast.min.css" rel="stylesheet" />
<link rel="icon" type="image/png" href="favicon.png" />
<style>
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
</style>
</head>
<div class="container">
<div class="row">
<!-- Middle Panel -->
<div class="col-lg-12">
<div class="card">
<div class="card-body p-4">
<div class="row">
<div class="col-md-9 col-lg-7 col-xl-6 mx-auto align-items-center text-center">
<div class="my-4">
<p class="text-success text-20 lh-1"><i class="fas fa-check-circle"></i></p>
<p class="text-success text-8 fw-500 lh-1">Success!</p>
<p class="lead">Registration Complete</p>
</div>
@* <p class="text-3 mb-4">You've Succesfully sent <span class="text-4 fw-500">@CustomerOnlineV2.Common.Helper.Utilities.ShowDecimal(Model.CollectAmount) @Model.CollectCurrency</span> to <span class="fw-500">@Model.ReceiverName</span>, See transaction details under <a href="/Transaction/Receipt?id=@Model.TransactionId">Transactions Details</a></p> *@
<div class="d-grid"><a href="/Account/Index"><button class="btn btn-primary">Login Page</button></a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</html>

88
CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/Payment.cshtml

@ -0,0 +1,88 @@
@model CustomerOnlineV2.Common.Models.TransactionModel.TrustPaymentRequest
@{
}
<head>
</head>
<body>
<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="stprofile" name="stprofile" value="default" type="hidden" />
<input asp-for="currencyiso3a" name="currencyiso3a" value="GBP" type="hidden" />
<input asp-for="mainamount" name="mainamount" type="hidden" />
<input asp-for="version" name="version" value="2" type="hidden" />
<input asp-for="orderreference" name="orderreference" type="hidden" />
<input asp-for="request_source" name="request_source" value="ORM" type="hidden" />
<input asp-for="billingfirstname" name="billingfirstname" type="hidden" />
<input asp-for="billinglastname" name="billinglastname" type="hidden" />
<input asp-for="billingstreet" name="billingstreet" type="hidden" />
<input asp-for="customerpremise" name="customerpremise" type="hidden" />
<input asp-for="customerstreet" name="customerstreet" type="hidden" />
<input asp-for="billingpostcode" name="billingpostcode" type="hidden" />
<input asp-for="customerpostcode" name="customerpostcode" type="hidden" />
<input asp-for="billingtown" name="billingtown" type="hidden" />
<input asp-for="customertown" name="customertown" type="hidden" />
<input asp-for="billingcountryiso2a" name="billingcountryiso2a" type="hidden" />
<input asp-for="customercountryiso2a" name="customercountryiso2a" type="hidden" />
<input asp-for="billingtelephone" name="billingtelephone" type="hidden" value="7984713677" />
<input asp-for="customertelephone" name="customertelephone" type="hidden" value="7984713677" />
<input asp-for="billingemail" name="billingemail" type="hidden" />
<input asp-for="customeremail" name="customeremail" type="hidden" />
<input name="customertelephonetype" value="M" type="hidden" />
<input asp-for="ruleidentifier" name="ruleidentifier" value="STR-6" type="hidden" />
<input asp-for="successfulurlredirect" name="successfulurlredirect" type="hidden" />
<input asp-for="declinedurlredirect" name="declinedurlredirect" type="hidden" />
<input asp-for="sitesecuritytimestamp" name="sitesecuritytimestamp" type="hidden" />
<input asp-for="sitesecurity" name="sitesecurity" type="hidden" />
<input asp-for="merchantemail" name="merchantemail" value="shakun@japanremit.com" type="hidden" />
<input type="submit" id="btn_submit" />
</form>
@* <form method="POST" action="https://payments.securetrading.net/process/payments/choice">
<input type="hidden" name="version" value="2">
<input type="hidden" name="sitereference" value="test_subhidauk71992">
<input type="hidden" name="stprofile" value="default">
<input type="hidden" name="currencyiso3a" value="GBP">
<input type="hidden" name="mainamount" value="80.00">
<input type="hidden" name="orderreference" value="12345111">
<input type="hidden" name="trans_ref" value="12345">
<input type="hidden" name="request_source" value="ORM">
<input type="hidden" name="billingfirstname" value="KEWAL">
<input type="hidden" name="billinglastname" value="RAJ POKHREL">
<input type="hidden" name="billingstreet" value="Middlesex">
<input type="hidden" name="customerpremise" value="London">
<input type="hidden" name="customerstreet" value="Middlesex">
<input type="hidden" name="billingpostcode" value="UB5 4SR">
<input type="hidden" name="customerpostcode" value="UB5 4SR">
<input type="hidden" name="billingtown" value="London">
<input type="hidden" name="customertown" value="London">
<input type="hidden" name="billingcountryiso2a" value="GB">
<input type="hidden" name="customercountryiso2a" value="GB">
<input type="hidden" name="billingtelephone" value="GB">
<input type="hidden" name="customertelephone" value="GB">
<input type="hidden" name="billingemail" value="kewal@imelondon.co.uk">
<input type="hidden" name="customeremail" value="kewal@imelondon.co.uk">
<input type="hidden" name="customertelephonetype" value="M">
<input type="hidden" name="ruleidentifier" value="STR-6">
<input type="hidden" name="successfulurlredirect" value="https://uat.imelondon.co.uk:1081/payment/STPaymentSuccess.aspx">
<input type="hidden" name="sitesecuritytimestamp" value="2023-09-28 16:36:51">
<input type="hidden" name="sitesecurity" value="hdd6728bb965b2a6c3e806d35d842540a2a94e0eeb503050ea2e87a467646286d">
<input type="hidden" name="ruleidentifier" value="STR-4">
<!--Sends email confirmation to the merchant, following declined transaction:-->
<input type="hidden" name="ruleidentifier" value="STR-5">
<input type="hidden" name="merchantemail" value="shakun@japanremit.com">
<input type="submit" value="Pay">
</form> *@
</body>

8
CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/SendMoney.cshtml

@ -93,7 +93,7 @@
<select asp-for="Receiver" class="form-select" required></select>
<label class="form-label">Select of Receiver</label>
</div>
Receiver Not Found ? <a href="add-receiver.html" target="_blank">Add Receiver</a>
Receiver Not Found ? <a href="/ReceiverInformation/Receiver" target="_blank">Add Receiver</a>
</div>
</div>
</div>
@ -185,7 +185,6 @@
@section Scripts{
<script type="text/javascript">
$(document).ready(function () {
$('#ReceivingCountry').change(function () {
if ($(this).val() != '') {
@ -375,6 +374,7 @@
let receiver = $('#Receiver').val();
let purposeOfRemit = $('#PurposeOfRemit').val();
let termsAndConditions = $('#TermsAndConditions').val();
let schemeId = $('#SchemeId').val();
let tpExRate = $('#hdnTPExRate').val();
@ -460,7 +460,9 @@
ShowAlertMessage(response.responseCode, response.responseMessage);
return;
}
window.location.replace("/Transaction/Success?id=" + response.transactionId);
// window.location.replace("/Transaction/Success?id=" + response.transactionId);
window.location.replace("/Transaction/Payment?id=" + response.transactionId);
},
error: function () {
return null;

50
CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/TranDecline.cshtml

@ -0,0 +1,50 @@
@{
Layout = null;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="~/" />
<link href="~/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="~/vendor/font-awesome/css/all.min.css" rel="stylesheet" />
<link href="~/vendor/bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet" />
<link href="~/vendor/currency-flags/css/currency-flags.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="~/vendor/toast-alert/izitoast.min.css" rel="stylesheet" />
<link rel="icon" type="image/png" href="favicon.png" />
<style>
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
</style>
</head>
<div class="container">
<div class="row">
<!-- Middle Panel -->
<div class="col-lg-12">
<div class="card">
<div class="card-body p-4">
<div class="row">
<div class="col-md-9 col-lg-7 col-xl-6 mx-auto align-items-center text-center">
<div class="my-4">
<p class="text-fail text-20 lh-1"><i class="fas fa-check-circle"></i></p>
<p class="text-fail text-8 fw-500 lh-1">Success!</p>
<p class="lead"> Transaction Payment failed</p>
</div>
@* <p class="text-3 mb-4">You've Succesfully sent <span class="text-4 fw-500">@CustomerOnlineV2.Common.Helper.Utilities.ShowDecimal(Model.CollectAmount) @Model.CollectCurrency</span> to <span class="fw-500">@Model.ReceiverName</span>, See transaction details under <a href="/Transaction/Receipt?id=@Model.TransactionId">Transactions Details</a></p> *@
<div class="d-grid"><a href="/Home/Index"><button class="btn btn-primary">Dashboard Page</button></a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</html>

50
CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/TranPaySuccess.cshtml

@ -0,0 +1,50 @@
@{
Layout = null;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="~/" />
<link href="~/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="~/vendor/font-awesome/css/all.min.css" rel="stylesheet" />
<link href="~/vendor/bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet" />
<link href="~/vendor/currency-flags/css/currency-flags.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="~/vendor/toast-alert/izitoast.min.css" rel="stylesheet" />
<link rel="icon" type="image/png" href="favicon.png" />
<style>
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
</style>
</head>
<div class="container">
<div class="row">
<!-- Middle Panel -->
<div class="col-lg-12">
<div class="card">
<div class="card-body p-4">
<div class="row">
<div class="col-md-9 col-lg-7 col-xl-6 mx-auto align-items-center text-center">
<div class="my-4">
<p class="text-success text-20 lh-1"><i class="fas fa-check-circle"></i></p>
<p class="text-success text-8 fw-500 lh-1">Success!</p>
<p class="lead"> Transaction Payment Complete</p>
</div>
@* <p class="text-3 mb-4">You've Succesfully sent <span class="text-4 fw-500">@CustomerOnlineV2.Common.Helper.Utilities.ShowDecimal(Model.CollectAmount) @Model.CollectCurrency</span> to <span class="fw-500">@Model.ReceiverName</span>, See transaction details under <a href="/Transaction/Receipt?id=@Model.TransactionId">Transactions Details</a></p> *@
<div class="d-grid"><a href="/Home/Index"><button class="btn btn-primary">Dashboard Page</button></a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</html>
Loading…
Cancel
Save