Hi @lan.dang
You can just inject IPaymentRequestAppService
into your page and use its GetAsync method to retrieve the related payment request. Then, you can check its status field.
Since customers can visit the same URL (for example mywebsite.com/PaymentSucceed?PaymentRequestID=xxx-xxx-xxx), you also need to store in your app if a given PaymentRequestID is used before or not.
Hi,
You need to configure PaymentOptions as shown below;
Configure<PaymentWebOptions>(options =>
{
options.RootUrl = configuration["AppSelfUrl"];
options.CallbackUrl = configuration["AppSelfUrl"] + "/PaymentSucceed";
});
If you provide RootUrl, this error will go away. If you provide CallbackUrl, payment module will redirect successfull payments to this URL. Then, if you are going to do any operation on this page (PaymentSucceed or a custom page you will define), please use IPaymentRequestAppService
to get the payment request and check its status as well.
Please also consider handling the case when users want to use same payment request more than 1 time.
Hi @lan.dang
Sorry for my late reply. For the items you want your customers to purchase, yes, you need to create a view. You can check this sample https://docs.abp.io/en/commercial/latest/modules/payment#sample-usage
Hi @lan.dang
Payment module doesn't support Angular UI at the moment. But, if you are using Payment module in an ASP.NET Core app, you can initiate a payment request from your Angular app and redirect customer to the Payment module (the one in your ASP.NET Core app). If you provide a CallbackUrl
on your Angular app, see https://docs.abp.io/en/commercial/latest/modules/payment#paymentweboptions, payment module will redirect the customer to your Angular app after a successfull payment and you can get the PaymentRequest record using IPaymentRequestAppService
, chck its status and do the required action on your Angular app.
Hi,
We will check why you are getting this error. I have added shobasundarrajan@genixtec.com to your organization as a deevloper.
Hi Prakash,
I have successfully added jparthiban@genixtec.com to your account. It seems like there is no user with other two emails on apb.io. Could you ask your friends to first register on https://abp.io/ and then try to add these two developers to your account ?
Hi Chris,
It seems like your payment went through and your license is updated.
Hi @Sturla,
Could you refer to https://support.abp.io/QA/Questions/885/Add-more-custom-payment-gateways#answer-e440408d-b5d7-7423-c7e8-39fa9800503b and see if it works for you ?
Thanks,
Hi @FarReach
Sorry for this problem, your license is upgraded.
Hi @learnabp
Sorry for my late reply. It seems like this package is not published. Could you download its source code and add it to your project as a project reference ?
We will be publishing this package with the new 4.3 version.