#prasun_webhooks

1 messages ¡ Page 1 of 1 (latest)

stark stumpBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1324359574056079453

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

urban turtle
#

hi there!

#

This data is being accessed from the event checkout.session.completed but not in invoice.payment_failed while payment is being failed.
that's normal, the metadata is on the Checkout Session object, not the Invoice object.

#

so you would need to use the Invoice to get back to the Checkout Session object. for example by getting the Subscription ID in the Invoice, and then making an extra API call to retrpieve the corresponding Checkout Session: https://docs.stripe.com/api/checkout/sessions/list

remote juniper
stark stumpBOT
urban turtle
#

I don't really understand. what's your question?

remote juniper