#anginie_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ 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/1458374942792880322
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
it would depend on the API version you are using to make requests, and the API version of your webhook event.
in your case you are likely using different API versions, so seeing different API response.
- the event payload says:
api_version: "2025-02-24.acacia" - but the request to create the Subscriptoin used
2025-03-31.basil: https://dashboard.stripe.com/acct_1R6T1tEuUZucavEd/test/logs/req_9WkaGPzQsQzMCH
to keep things consistent, I recommend using a webhook endpoint with the same version as your API requests.
ok, but I think this is doesn't matter much, I read the https://github.com/stripe/stripe-go/blob/v84.1.0/invoice.go, this struct still has no such fields
it does matter, in the API version basil we removed the payment_intent and charge property of the Invoice.
ok, I will read this document first
so, the reliable way is get charge or payment_intent of a invoice is request retrieve invoice api with payments expand? could I use the data in event?
you want to know how to get the payment_intent of an Invoice when using the Basil API version?
it's explained in the link I shared
by retriving the Invoice with expand: ['payments']
ok, I get it, thank you