#michael_checkout-connect

1 messages ¡ Page 1 of 1 (latest)

wild oracleBOT
#

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

wide loom
#

Hi there

west quiver
#

hi

wide loom
#

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?

west quiver
#

This will be for later use

wide loom
#

Gotcha. In that case, I recommend using SetupIntents

west quiver
#

ok, i'll try this. thanks! does this have a front-end element or is this just an api method?

wide loom
#

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

west quiver
wide loom
#

Yes, as long as you pass customer when creating the SetupIntent

west quiver
#

is the 'embedded form' using a stripe payment element, but the 'stripe hosted page' a custom page?

#

what is a stripe-hosted page?

wide loom
#

"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

west quiver
#

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?

wide loom
#

Just to make sure we're on the same page, this is for a Connect scenario, correct?

west quiver
#

yes, we are a stripe platform and we have merchants who use stripe connected accounts

wide loom
#

Got it. You'll pass the customer ID and the connected account ID server side when creating the Checkout Session

wild oracleBOT