#-7he-judge-_best-practices

1 messages ¡ Page 1 of 1 (latest)

tight schoonerBOT
#

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

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

lapis forum
stuck jay
#

it means, that I collect user, create payment intent with that
and use clientSecret after?

lapis forum
#

The doc describes it

#

You collect payment details on the frontend via the payment element without needing to create payment intent until after those details have been filled out

stuck jay
#

I do not understand

#

if I understood this doc correct
we must collect customer data somewhere
and create payment intent with this data
and after I could see PaymentElement

#

Am I right?

#

Could I show payment methods
without payment intent?

lapis forum
#
and create payment intent with this data
and after I could see PaymentElement```
No that's incorrect
#

You load payment element first

#

On page load

#

Customer puts info into payment element

#

When they submit, you create payment intent

#

Per the steps in the doc

stuck jay
#

but <PaymentElement /> needs clientSecret

lapis forum
#

No it does not

#

Not in the deferred intent flow

#

I sent you the documentation

#

It's a different flow

#

You pass an amount instead

#

Just read the document