#mark_docs

1 messages ¡ Page 1 of 1 (latest)

spice pierBOT
#

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

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

livid hazel
#

how i can create payment method from client side before the backend created payment intent?
That's not supported for the Express Checkout Element

#

Here are the available scenarios

#

To achieve something similar

livid hazel
#

Yes

spice pierBOT
obsidian blade
#

could you. please write how it works exactly?

#

customer will select plan, when click pay express chekout collect payment details and send it to backend?

#

this process done by Confirmation Token with Express Checkout?

#

by the way here in my backend, i create paymentintent and confirm it in same time.

livid hazel
#

Yes which is the second step

obsidian blade
#

problem now to create paymentintent i need payment method first

livid hazel
#

Have you had a chance to follow the two guides I shared with you step by step ?

obsidian blade
#

ok i will try

#

other Q

obsidian blade
livid hazel
#

No

livid hazel
obsidian blade
#

ok what about subscription?

#

how process will work?

livid hazel
obsidian blade
#

after Confirmation Token i need to create subscription?

obsidian blade
#

?

keen cipher
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

keen cipher
obsidian blade
#

The customer enters their payment details (e.g., card number) into the Stripe express checkout Elements UI
Stripe express chekout Elements securely collects this information. All card information is tokenized or processed by Stripe directly in the browser.
The card details are sent to Stripe for tokenization. Stripe returns a payment method token or client_secret that can be used by my backend to create and confirm paymentintent

#

right?

keen cipher
#

The card details are sent to Stripe for tokenization.
... Stripe returns the confirmation token. You then create a Subscription, or a single PaymentIntent on the backend, and use its client_secret and the confirmation token ID to confirm the payment on the frontend.

obsidian blade
#

wait but i use this to create and confirm in same time!!

#

confirm=true

keen cipher
#

Do you want to confirm the payment on the backend?
Then you can send the Payment Method ID from the confirmation token to the backend.

obsidian blade
#

yes

#

soooo
After collecting payment details and obtaining a confirmation token on the frontend, extract the Payment Method ID.
Send this ID to my backend, where i can create and confirm a PaymentIntent using the ID.

#

last Q: and subscription same?

keen cipher
#

Correct.
Yes

obsidian blade
#

thank you so much