#mymodian_best-practices
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/1263429605369450548
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mymodian_code, 1 day ago, 49 messages
๐ happy to help
the client_secret in the setup intent object: "seti_1PdqZJ06MwLWnujJn5FsLSLw_secret_QUqFzZohqcZLHQqZn2bFpTgLPHAv0JX"
the client_secret in the session object: cs_test_c14Hrc4GI2hWGTBiMXUG58rhSqj4bTzE0fxVIaXlXER5rfU1sTyfipEARx_secret_fidwbEhqYWAnPydgaGdgYWFgYScpJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknd2BhbHdgZnFKa0ZqaHVpYHFsamsnPydsY1p3YHRwbHdgYSd4JSUl
if you're using a Checkout Session you don't need to worry about the SetupIntent
and why the client_secret in the setup session object is so long
it will be confirmed or canceled by the Checkout Session
if the session.New request is timeout but stripe process it success, how can i know this?
If a Checkout Session times out then the SetupIntent would be automatically cancelled
I mean that the request to create the setup intent session is timeout, then i can't get the client_secret to collect the customer's payment method.
if it times out an exception is thrown and you'd retry the request.
(the SDK already can do that for you automatically : https://github.com/stripe/stripe-go/tree/master?tab=readme-ov-file#automatic-retries ).
if all retry timeouted?
then it throws an exception and you'd decide what you want to do.
then i can only ignore it, as there's no event on this.
cool