#salim-bt_api

1 messages ¡ Page 1 of 1 (latest)

worn pendantBOT
#

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

void mica
#

Hi there. Looking

azure wadi
#

IF yes, Can you please send 2 docs, how to confirm in front and how to confirm in backend?

void mica
worn pendantBOT
void mica
#

Ah I think I see what you're asking

azure wadi
glacial patrol
#

yes

azure wadi
#

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

glacial patrol
#

Yes

azure wadi
#

possible?

glacial patrol
azure wadi
glacial patrol
#

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

azure wadi
#

i see it support only payments

#

i said i use express checkout element

glacial patrol
#

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

#

There's an optional section about Creating Confirmation Token before Step 6

azure wadi
#

after do the step before Step 6, i have to do step 6 ?

glacial patrol
#

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.

azure wadi
#

aaah got it

#

and step 6 to create paymentntent without provide confirmation token

glacial patrol
#

correct

azure wadi
#

cool