#mark_docs
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/1290248745954443315
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
What you can do instead is to use Confirmation Token with Express Checkout:
https://docs.stripe.com/elements/express-checkout-element/accept-a-payment#create-ct
To achieve something similar
backend needed for this?
Yes
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.
Yes which is the second step
problem now to create paymentintent i need payment method first
this not for express checkout?
No
This is the Express Checkout Element Guide with confirmation token.
Here is the Subscription guide:
https://docs.stripe.com/elements/express-checkout-element/accept-a-payment?client=html#create-ct
after Confirmation Token i need to create subscription?
is it work for both onetime and subscription?
?
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Yes, it should work for both.
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?
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 itsclient_secretand the confirmation token ID to confirm the payment on the frontend.
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.
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?
Correct.
Yes
thank you so much