#ugh_checkout-apiversion

1 messages ¡ Page 1 of 1 (latest)

pallid elbowBOT
#

👋 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.

red urchin
#

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

mighty zenith
#

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

red urchin
#

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

mighty zenith
#

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?

red urchin
#

Yes there is in your Dashboard, but I recommend reading the doc I shared above which explains it all and how to upgrade

mighty zenith
#

ahhh okay i see. so the webhook itself was pinned to a version when i created it?

#

makes sense

red urchin
#

yes

mighty zenith
#

cool got it. thanks for the help!