#ajalexsmith
1 messages ยท Page 1 of 1 (latest)
Hello! Stripe can only resent Events in API versions it created at the time the Event was originally created. Can you tell me more about what you're trying to do?
Hi There! ๐ Yeah, I'm creating a checkout session, then picking up the webhook on a session complete event. In theory it seems to be sending the correct version request to the webhook, but when i use the CLI to forward the event to localhost, and use the events resend command, it seems to chaneg the version to 2020
Yep, it's going to use your account's default API version.
Theres no way of just chaging the test accounts api version?
Have you tried specifying the API version you want? https://stripe.com/docs/cli/events/resend#events_resend-stripe-version
I did but it didnt seem to work?
So, to clarify, when you resend your Webhook Endpoint with API version 2022-11-15 is not getting the Event in that version?
Can you paste the Event ID (evt_) here for me?
Thats correct!
Its sending it to the live webhook with the correct version, but seems to be defaulting to the 2020 version when resending it via the cli
evt_1NO2tFFSvEOPj1X4OEiNS3UP
Right, that's expected behavior. I'm not entirely sure I understand what you're trying to do? It seems like the resend is working as intended. If you want the Event in that specific version locally you can fetch it via the API.
The webhook is version 2022-11-15, and is receiving 2022-11-15 hooks. I'm trying to debug an error, so setup the cli to forward requests to localhost. When i try and replay the above event through the CLI, it sends it as 2020-08-27, which isn't correct
Ah, got it, the CLI version was out of date. All sorted ๐
Ah, okay!
I didn't think the CLI version would do something like this, but good to know!
I didn't do much, but no problem! ๐