#michael_checkout-connect
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/1291146674965577809
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
hi
When you collect the payment method from the customer, are you also charging them at the same time or is your goal to solely collect those payment details for later use?
This will be for later use
ok, i'll try this. thanks! does this have a front-end element or is this just an api method?
SetupIntents can be used with Stripe-hosted payment flows (Checkout, Embedded Checkout) or with Elements. If you opt to use Elements, you'd create the SetupIntent using server-side code, then use the SetupIntent's client_secret on the frontend to initialize Elements
https://docs.stripe.com/payments/save-and-reuse - I recommend toggling the tabs at the top ("Stripe-hosted page", "Embedded form", "Custom payment flow") to see the differences
will this allow me to retrieve the payment methods later using https://docs.stripe.com/api/payment_methods/customer_list
Yes, as long as you pass customer when creating the SetupIntent
is the 'embedded form' using a stripe payment element, but the 'stripe hosted page' a custom page?
what is a stripe-hosted page?
"Stripe hosted" means using Stripe Checkout in this case. Checkout can be used as either a full redirect or you can embed the Checkout Session within your site
"embedded" uses the Checkout UI within your site
for the embedded form, i will need to pass in the customer and the stripe account id for the merchant. where would this be passed in?
Just to make sure we're on the same page, this is for a Connect scenario, correct?
yes, we are a stripe platform and we have merchants who use stripe connected accounts
Got it. You'll pass the customer ID and the connected account ID server side when creating the Checkout Session