#doddlin
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
You need to use Webhooks
If the Checkout Session created a Subscription, you'll get the SubscriptionId:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-subscription
I have "mode": "subscription", in my checkout.session, but I also have "subscription":null
on this session cs_test_a19UqOZcQI5HsMhJZCnxpZxfvbpsTHq3lQ60fJM7Z2TormUxUPGPbBNWGc
I see I could use the customer-object but what if my customers can have multiple subscriptions, then it feels a bit wobbly?
You need to listen to this webhook event checkout.session.completed you'll have a Subscription Id filled
Here is the Subscription sub_1OebA4C2mi0QyX9XFSXEkew5 created from that Checkout Session:
Ah, I see! Thanks for that! 😄