#ugh_checkout-apiversion
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/1287833452535873640
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
ugh_checkout-apiversion
@mighty zenith This is due to the API version https://docs.stripe.com/upgrades#2022-08-01 where one of the changes was
shipping has been renamed to shipping_details.
You seem to be on a way older API version (2020-08-27) so when you get an Event it's formatted based on what the API looked like at that time (otherwise it'd break your code if we change the format).
So I don't think there's a bug here, just you are on a 4 years old API version and have a different API shape
Interesting. I have the react app specifying "2024-06-20"...
where would that older version be specified? on the account settings or something?
the react app is the one where the checkout is occurring. but we are also using the hosted checkout for credit card payments
Yeah it's quite subtle. You say "the react app" but that could mean many things. There are client-side calls, server-side calls and then there's the API version used to format Events sent to your webhook handler. They each have their own controls
I recommend reading https://docs.stripe.com/webhooks/versioning
right yeah. i meant to say its the front end app where the payment happens. so i would have expected the webhook to use that version
although i see on that page it says "webhooks ... or use the default API version of the Stripe account."
so is there an account setting for it somewhere?
Yes there is in your Dashboard, but I recommend reading the doc I shared above which explains it all and how to upgrade
ahhh okay i see. so the webhook itself was pinned to a version when i created it?
makes sense
yes
cool got it. thanks for the help!