Browse Source

Rename payment pages as PreCheckout & PostCheckout

pull/69/head
enisn 5 years ago
parent
commit
8d24b99be1
  1. 2
      modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml
  2. 4
      modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs
  3. 4
      modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml
  4. 4
      modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs

2
modules/payment/src/Payment.Web/Pages/Payment/CheckoutCallback.cshtml → modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml

@ -2,7 +2,7 @@
@using Payment.Web.Pages.Payment @using Payment.Web.Pages.Payment
@using Payment.PaymentRequests @using Payment.PaymentRequests
@inherits Payment.Web.Pages.PaymentPageBase @inherits Payment.Web.Pages.PaymentPageBase
@model Payment.Web.Pages.Payment.CheckoutCallbackModel @model Payment.Web.Pages.Payment.PostCheckoutPageModel
@{ @{
PageLayout.Content.Title = L["PaymentResult"] + L["Enum:PaymentRequestState:" + Model.PaymentRequest.State]; PageLayout.Content.Title = L["PaymentResult"] + L["Enum:PaymentRequestState:" + Model.PaymentRequest.State];
} }

4
modules/payment/src/Payment.Web/Pages/Payment/CheckoutCallback.cshtml.cs → modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Payment.Web.Pages.Payment namespace Payment.Web.Pages.Payment
{ {
public class CheckoutCallbackModel : PaymentPageModel public class PostCheckoutPageModel : PaymentPageModel
{ {
[BindProperty(SupportsGet = true)] [BindProperty(SupportsGet = true)]
public string Token { get; set; } public string Token { get; set; }
@ -16,7 +16,7 @@ namespace Payment.Web.Pages.Payment
private readonly IPaymentRequestAppService _paymentRequestAppService; private readonly IPaymentRequestAppService _paymentRequestAppService;
private readonly PaymentWebOptions _paymentWebOptions; private readonly PaymentWebOptions _paymentWebOptions;
public CheckoutCallbackModel( public PostCheckoutPageModel(
IPaymentRequestAppService appService, IPaymentRequestAppService appService,
IOptions<PaymentWebOptions> paymentWebOptions) IOptions<PaymentWebOptions> paymentWebOptions)
{ {

4
modules/payment/src/Payment.Web/Pages/Payment/Checkout.cshtml → modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml

@ -1,10 +1,10 @@
@page @page
@using Payment.Web.Pages.Payment @using Payment.Web.Pages.Payment
@inherits Payment.Web.Pages.PaymentPageBase @inherits Payment.Web.Pages.PaymentPageBase
@model Payment.Web.Pages.Payment.CheckoutPageModel @model Payment.Web.Pages.Payment.PreCheckoutPageModel
@section scripts { @section scripts {
<abp-script-bundle name="@typeof(CheckoutPageModel).FullName"> <abp-script-bundle name="@typeof(PreCheckoutPageModel).FullName">
<abp-script src="/client-proxies/Payment-proxy.js" /> <abp-script src="/client-proxies/Payment-proxy.js" />
</abp-script-bundle> </abp-script-bundle>
} }

4
modules/payment/src/Payment.Web/Pages/Payment/Checkout.cshtml.cs → modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Payment.Web.Pages.Payment namespace Payment.Web.Pages.Payment
{ {
public class CheckoutPageModel : PaymentPageModel public class PreCheckoutPageModel : PaymentPageModel
{ {
[BindProperty(SupportsGet = true)] [BindProperty(SupportsGet = true)]
public Guid PaymentRequestId { get; set; } public Guid PaymentRequestId { get; set; }
@ -16,7 +16,7 @@ namespace Payment.Web.Pages.Payment
private readonly IPaymentRequestAppService _paymentRequestAppService; private readonly IPaymentRequestAppService _paymentRequestAppService;
private readonly IPaymentUrlBuilder _paymentUrlBuilder; private readonly IPaymentUrlBuilder _paymentUrlBuilder;
public CheckoutPageModel( public PreCheckoutPageModel(
IPaymentRequestAppService paymentRequestAppService, IPaymentRequestAppService paymentRequestAppService,
IPaymentUrlBuilder paymentUrlBuilder) IPaymentUrlBuilder paymentUrlBuilder)
{ {
Loading…
Cancel
Save