#jkendrick-checkout-subscription
1 messages · Page 1 of 1 (latest)
subscription is created after the completion on Checkout
1/ create a session
2/ redirect to Checkout
3/ pay
4/ get redirected back to success_url and subscription is set
So will the "subscription" value always be null on the session object? If so, is there a reason that it has a "subscription" property?
I said the opposite though
it's null on creation. It is set after you complete the flow on Checkout
after step 4, when you have paid, if you then call https://stripe.com/docs/api/checkout/sessions/retrieve and look at subscription it will be set
oh, I see.
If there is an error with the user getting to the success_url would that affect subscription being set?
no at that point it's already set. And that's why we recommend always using a webhook for fulfillment
okay that makes sense. thank you!