#Hendie
1 messages · Page 1 of 1 (latest)
With the latest API Version 2022-11-15 the charges array was replaced with a latest_charge property that just shows the latest charge on the payment intent https://stripe.com/docs/upgrades#2022-11-15
If you look that event again latest_charge is there
thanks!
This is configurable. You can either set an older API Version on your webhook endpoint or you can write in to support to downgrade your account's default API version
so I need to then query for that charge to get its detail?
Exactly
And if you need the previous charges you can still list them via the list charges endpoint and filter on that subscription ID
how can I set an older API version on the webhook endpoint?
our account default API is really old - we're specifying a newer one via the API calls itself
so, on a payment_intent.payment_failed I only need to look at last_payment_error to get the error message? that's really all I need from that event
fortunately this is only happening in test for us. Our production event version is 2020-08-27. Can I get our test events set to the same?
Yes, you can create a webhook endpoint and specify the version in the API call https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-api_version
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The dashboard only lets you choose between your account's default version and the most recent version
And cool, glad that it sounds like that last_payment_error property may remove the need for an API call
set the version via Stripe CLI?
Stripe CLI yes, dashboard no. The Dashboard does let you choose a version but only the account's default and the most recent
Actually, are you asking about creating an endpoint via the CLI or using the CLI as a local listener?
I noticed that. thanks for the help
the former
also, if I create a new webhook with my own specified version, but listening for the same events as an existing webhook, will both webhooks exist when I'm done?
Exist in the dashboard? Or somewhere else? I forget how we handle events in multiple versions but will check in to it
in the dashboard, yes. thanks
can I ask another question about that stripe event?
we used the standard ACH bank account and yet got the insufficient funds error message. Can you maybe explain why?
sorry, ignore the last question, I see it is the test account that should respond that way