#RamonP99
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.
- RamonP99, 2 hours ago, 4 messages
- RamonP99, 5 days ago, 9 messages
- RamonP99, 5 days ago, 19 messages
- ramon-checkout-customer, 6 days ago, 21 messages
- RamonP99, 6 days ago, 10 messages
hi! well the webhook body itself is always the base version with no expansion. https://stripe.com/docs/expand#with-webhooks
you can make an API call to retrieve the CheckoutSession and expand what you need
as for session.invoice being null, really depends, did you create the CheckoutSession with https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-invoice_creation-enabled ? if not there won't be an Invoice object so it being null is normal
The payment is not one time but recurring in my checkout. Therefor I cannot set the invoice creation enabled
Should I in that case simply fetch the data seperately?
so you are using mode:"subscription"?
Yes
if so it's normal that invoice is null
if you want the Invoice, you would take the ID of the Subscription that is created (session.subscription), retrieve that object from the API, and then subscription.latest_invoice is the ID of the first Invoice of that Subscription which has just been paid.