#Hendie

1 messages · Page 1 of 1 (latest)

hardy vortexBOT
exotic current
#

If you look that event again latest_charge is there

pseudo edge
#

thanks!

exotic current
#

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

pseudo edge
#

so I need to then query for that charge to get its detail?

exotic current
#

Exactly

#

And if you need the previous charges you can still list them via the list charges endpoint and filter on that subscription ID

pseudo edge
#

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?

exotic current
#

The dashboard only lets you choose between your account's default version and the most recent version

pseudo edge
#

so it cannot be done from your dashboard?

#

can I do it on Stripe CLI?

exotic current
#

And cool, glad that it sounds like that last_payment_error property may remove the need for an API call

pseudo edge
#

set the version via Stripe CLI?

exotic current
#

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?

pseudo edge
#

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?

exotic current
#

Exist in the dashboard? Or somewhere else? I forget how we handle events in multiple versions but will check in to it

pseudo edge
#

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?

hardy vortexBOT
pseudo edge
#

sorry, ignore the last question, I see it is the test account that should respond that way