#salim-bt_api

1 messages ¡ Page 1 of 1 (latest)

static ermineBOT
#

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

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

worthy fox
#

in the step shared, i see you send confirmation token to server

#

and in step 6 i see this token not used to create payment intent!!

queen crater
#

Ah, thanks for flagging. This likely got missed by the docs team. I'm happy to flag this and have this updated.

worthy fox
#

ok so need use confirmation token in step 6 or not?

queen crater
#

You should, yes..

worthy fox
#

you told me before

If you're confirming client-side then you don't need to create the PaymentIntent with a confirmation token.
When you confirm on the frontend, Stripe.js will automatically confirm using the confirmation token

queen crater
#

oh right, you want client-side confirmation. In which case, you don't need to pass it. Sorry got confused..

worthy fox
#

so in step before 6, token should not be sent to server?

queen crater
#

so in step before 6, token should not be sent to server?
yes

worthy fox
#

ok thanks!
and what do you mean by this?
When you confirm on the frontend, Stripe.js will automatically confirm using the confirmation token

you mean the code i selected?

queen crater
#

Yes

worthy fox
#

ok last Q
this Q will be about create and confirm in backend using single call

  • user will open google pay ui, when this ui will be closed? after creating and confirming payment intent?
static ermineBOT
queen crater
#

UI will close before PaymentIntent is created/confirmed. Confirmation token is created after google pay modal closes

worthy fox
#

in frontend confirmationn too?

trail onyx
#

Hello, yes the order of the calls is the same, the difference is where the confirm call happens