#salim-bt_api
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/1381704621277446218
đ 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.
- salim-bt_finalize-on-server, 1 hour ago, 11 messages
- salim-bt_ece-errors, 2 hours ago, 67 messages
- salim-bt_api, 3 days ago, 12 messages
- salim-bt_api, 3 days ago, 13 messages
- salim-bt_api, 4 days ago, 6 messages
- salim-bt_api, 4 days ago, 7 messages
and 1 more
Hi there. Looking
IF yes, Can you please send 2 docs, how to confirm in front and how to confirm in backend?
Hi there - a confirmation token can only be provided when creating and confirming a PaymentIntent in a single call server-side.
See https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirmation_token
Ah I think I see what you're asking
We have another flow where you use confirmation tokens but confirm on the client. Those docs are here:
https://docs.stripe.com/payments/build-a-two-step-confirmation
The docs where you create/confirm a PaymentIntent on the server with a confirmation token are here:
https://docs.stripe.com/payments/finalize-payments-on-the-server
now this create and confirm in backend in single request
https://docs.stripe.com/payments/finalize-payments-on-the-server?platform=web&type=payment#submit-payment
yes
what if i want to confirm in frontend?
1- i will create confirmation token
2- i will create paymentintent using confirmation token
3- confirm in frontend
Yes
possible?
That's the first doc palamedes shared above
#1381704621277446218 message
https://docs.stripe.com/payments/build-a-two-step-confirmation#create-intent
this code not include confirmation token to create payment intent!!
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
this supports elemets?
https://docs.stripe.com/payments/build-a-two-step-confirmation
i see it support only payments
i said i use express checkout element
We don't have a specific guide for Express Checkout Element but the same steps should work
Like in step 4, instead of listening to form.addEventListener('submit',...) -> you'd create the token on expressCheckoutElement.on('confirm', ....) instead
Ah actually, here - https://docs.stripe.com/elements/express-checkout-element/accept-a-payment
There's an optional section about Creating Confirmation Token before Step 6
after do the step before Step 6, i have to do step 6 ?
Yes, you'd still need to Create a PaymentIntent server-side.
Optional Step combines Confirmation Token creation + Payment confirmation so you can skip step 7 instead since that's a duplicate of what you're already doing with optional step.
correct
cool