#shuffo_api

1 messages ¡ Page 1 of 1 (latest)

stable gustBOT
#

👋 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/1399689820036403253

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

fair frost
#

Yeah you can't accept multiple currencies from one single Stripe Customer object

#

you can/should create two Stripe Customer object for the same user (one for GBP and one for AUD)

supple pier
#

Is there a suggested best practice on how to handle this? I can think of a couple of ways:

Solution 1. If creating a checkout session fails with this error, try again without passing in the stored customer_id which will allow the checkout_session to auto create a new customer
Solution 2. Check if the customer currency matches the current checkout before passing the customer_id to the checkout_session

Both add latency overall.

fair frost
#

Yeah, those are two workarounds that could work

supple pier
#

Ok thank you