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.PaymentRequests
@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];
}

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
{
public class CheckoutCallbackModel : PaymentPageModel
public class PostCheckoutPageModel : PaymentPageModel
{
[BindProperty(SupportsGet = true)]
public string Token { get; set; }
@ -16,7 +16,7 @@ namespace Payment.Web.Pages.Payment
private readonly IPaymentRequestAppService _paymentRequestAppService;
private readonly PaymentWebOptions _paymentWebOptions;
public CheckoutCallbackModel(
public PostCheckoutPageModel(
IPaymentRequestAppService appService,
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
@using Payment.Web.Pages.Payment
@inherits Payment.Web.Pages.PaymentPageBase
@model Payment.Web.Pages.Payment.CheckoutPageModel
@model Payment.Web.Pages.Payment.PreCheckoutPageModel
@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-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
{
public class CheckoutPageModel : PaymentPageModel
public class PreCheckoutPageModel : PaymentPageModel
{
[BindProperty(SupportsGet = true)]
public Guid PaymentRequestId { get; set; }
@ -16,7 +16,7 @@ namespace Payment.Web.Pages.Payment
private readonly IPaymentRequestAppService _paymentRequestAppService;
private readonly IPaymentUrlBuilder _paymentUrlBuilder;
public CheckoutPageModel(
public PreCheckoutPageModel(
IPaymentRequestAppService paymentRequestAppService,
IPaymentUrlBuilder paymentUrlBuilder)
{
Loading…
Cancel
Save