Starts in:
0 DAY
13 HRS
16 MIN
15 SEC
Starts in:
0 D
13 H
16 M
15 S
Open Closed

Error in enabling the Payment Gateways #2457


User avatar
0
hmahmood created
  • ABP Framework version: v4.4.4
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

We did the settings to enable the payment gateways, using this documentation We are using the stripe payment gateway for this. In stripe we created three plans. We further create three plans and add the stripe product ids in these plane. Three editions are also created in saas module accordingly for these three plans. We also created a tenant and assigned an edition to the tenant.

The issue we are facing is that, once we try to register the tenant user it don't show any of the plan on the register page.

Please guide how to resolve it.


1 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi @hmahmood

    ABP doesn't provide any UI for pricing, plans or something like that. You have to implement your own UI for that.

    When a user chooses a plan in a page designed by you, you should call Create method of IPaymentRequestAppService.

    var paymentRequest = await PaymentRequestAppService.CreateAsync(
                new PaymentRequestCreateDto()
                {
                    Products =
                    {
                        new PaymentRequestProductCreateDto
                        {
                            PaymentType = PaymentType.Subscription,
                            Name = "Enterprise Plan",
                            Code = "EP",
                            Count = 1,
                            // Place below your created PlanId.
                            PlanId = DemoAppData.Plan_2_Id, 
                        }
                    }
                });
    
            return LocalRedirectPreserveMethod("/Payment/GatewaySelection?paymentRequestId=" + paymentRequest.Id);
        
    

    Subscription feature provides only C# interface. It doesn't provide built-in plans/pricing table.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06