#0xL34N
1 messages · Page 1 of 1 (latest)
Hello!
I have a Saas and I am configuring the products with their corresponding prices, once this is finished, I plan to create a subscription for a customer and associate one of these prices to it. My question is, when and how the user configures and enters the payment method? Do I get a URL to redirect him or do I have to request this data myself?
That all depends on what integration you want to use!
You can basically do it either way
I would recommend using Stripe Checkout
Yep
I see that this option return a url, it's correct?
And that is the URL i use to redirect the user
Then the user to complete the payment, i recibe by webhook the information
Am I right?
Yep exactly right
In this step: const session = await stripe.checkout.sessions.create...
I can specify the customID?
Fantastic
What happen if the user need to chan the Plan?
Can I do this step without the URL, just changing the subscription ID or any way from the code?
Yep you can update a Subscription using https://stripe.com/docs/api/subscriptions/update if you want to manage this yourself. Or you can use the Customer Portal: https://stripe.com/docs/customer-management
Oka bismarck, thanks a lot