#Gautam
1 messages · Page 1 of 1 (latest)
Hi there!
yes
To create subscriptions we usually recommend to use Checkout Session since it's much simpler to implement: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout
But if you want to directly create the Subscription yourself, then I recommend following this guide: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
And when I use the webhooks and when to use the normal methods?
If you use Checkout Session, the flow is:
- Create the Checkout Session
- Redirect the customer to the Checkout Session URL
- And listen to
checkout.session.completedto be notified when a new subscription starts.
Ok thanks checking the documentation.
If there is any reference in hapi js then please also provide me.
I don't know what is hapy.js, but we don't have documentation using this.
For Checkout Session I recommend the link I shared above: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout
Ok Thanks!