Browse Source

Refactoring on Payment module

pull/69/head
Enis Necipoğlu 5 years ago
parent
commit
acebab9be1
  1. 1
      modules/payment/src/Payment.Domain/PaymentRequests/PaymentRequest.cs
  2. 4
      modules/payment/src/Payment.HttpApi/PaymentRequests/PaymentRequestController.cs
  3. 2
      modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs

1
modules/payment/src/Payment.Domain/PaymentRequests/PaymentRequest.cs

@ -25,6 +25,7 @@ namespace Payment.PaymentRequests
public bool IsDeleted { get; set; }
[CanBeNull]
public string FailReason { get; protected set; }
private PaymentRequest()

4
modules/payment/src/Payment.HttpApi/PaymentRequests/PaymentRequestController.cs

@ -5,7 +5,7 @@ using Volo.Abp;
namespace Payment.PaymentRequests
{
[RemoteService(Name = PaymentRemoteServiceConsts.RemoteServiceName)]
[RemoteService(Name = PaymentRemoteServiceConsts.RemoteServiceName)]
[Area("payment")]
[Route("api/payment/requests")]
public class PaymentRequestController : PaymentController, IPaymentRequestAppService
@ -44,4 +44,4 @@ namespace Payment.PaymentRequests
return PaymentRequestAppService.StartPaymentAsync(input);
}
}
}
}

2
modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs

@ -39,7 +39,7 @@ namespace Payment.Web.Pages.Payment
PaymentRequest = await _paymentRequestAppService.CompleteAsync(Token);
GoBackLink = _paymentUrlBuilder.BuildReturnUrl(PaymentRequest.Id).AbsoluteUri;
GoBackLink = _paymentUrlBuilder.BuildCheckoutUrl(PaymentRequest.Id).AbsoluteUri;
if (PaymentRequest.State == PaymentRequestState.Completed
&& !_paymentWebOptions.PaymentSuccessfulCallbackUrl.IsNullOrWhiteSpace())

Loading…
Cancel
Save