diff --git a/modules/payment/src/Payment.Domain.Shared/PaymentRequests/PaymentRequestCompletedEto.cs b/modules/payment/src/Payment.Domain.Shared/PaymentRequests/PaymentRequestCompletedEto.cs index c537f1b..34059c3 100644 --- a/modules/payment/src/Payment.Domain.Shared/PaymentRequests/PaymentRequestCompletedEto.cs +++ b/modules/payment/src/Payment.Domain.Shared/PaymentRequests/PaymentRequestCompletedEto.cs @@ -8,6 +8,7 @@ namespace Payment.PaymentRequests public class PaymentRequestCompletedEto : EtoBase, IHasExtraProperties { public Guid PaymentRequestId { get; set; } + public ExtraPropertyDictionary ExtraProperties { get; set; } } } diff --git a/modules/payment/src/Payment.Domain/PaymentRequests/PaymentRequest.cs b/modules/payment/src/Payment.Domain/PaymentRequests/PaymentRequest.cs index 086639b..fa0090f 100644 --- a/modules/payment/src/Payment.Domain/PaymentRequests/PaymentRequest.cs +++ b/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() diff --git a/modules/payment/src/Payment.HttpApi/PaymentRequests/PaymentRequestController.cs b/modules/payment/src/Payment.HttpApi/PaymentRequests/PaymentRequestController.cs index ebf45b1..3ba9d76 100644 --- a/modules/payment/src/Payment.HttpApi/PaymentRequests/PaymentRequestController.cs +++ b/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); } } -} +} \ No newline at end of file diff --git a/modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs b/modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs index e198f8c..26e5c54 100644 --- a/modules/payment/src/Payment.Web/Pages/Payment/PostCheckout.cshtml.cs +++ b/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())