Browse Source

Update PreCheckout.cshtml.cs

pull/69/head
enisn 5 years ago
parent
commit
8a12189784
  1. 6
      modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs

6
modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs

@ -11,7 +11,7 @@ namespace Payment.Web.Pages.Payment
{
[BindProperty(SupportsGet = true)]
public Guid PaymentRequestId { get; set; }
public PaymentRequestDto PaymentRequest { get; set; }
private readonly IPaymentRequestAppService _paymentRequestAppService;
@ -24,14 +24,14 @@ namespace Payment.Web.Pages.Payment
_paymentRequestAppService = paymentRequestAppService;
_paymentUrlBuilder = paymentUrlBuilder;
}
public async Task<IActionResult> OnGetAsync()
{
PaymentRequest = await _paymentRequestAppService.GetAsync(PaymentRequestId);
return Page();
}
public async Task OnPostAsync()
{
PaymentRequest = await _paymentRequestAppService.GetAsync(PaymentRequestId);

Loading…
Cancel
Save