#john_api

1 messages ¡ Page 1 of 1 (latest)

bright templeBOT
#

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

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

fading creekBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

acoustic hazel
craggy knoll
#

thanks @acoustic hazel

another question:
what is a better approach towards collecting Customer's payment method details -
Checkout Session OR SetupIntent API?

acoustic hazel
#

it's not about what's better, but more about what you need. For example, if you need your page to follow a very specific design or UX flow, then you would use SetupIntents paired with the Payment Element to build your own page / flow

#

there isn't really much customization that you can do for the Checkout Session page

#

Checkout Sessions with mode=setup is essentially using SetupIntents under the hood as well

craggy knoll
#

I see.
where can I find a sample code that customizes UX with SetupIntents?

#

I would like to try that out

#

Also, if we want to charge the Customer at the time of collecting payment method, is Checkout a right solution or could that be done with both the solutions?

acoustic hazel
#

we don't have any samples specifically for it, but you can refer to this guide for SetupIntents :
https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements

If you want to charge the customer and save the payment method at the same time, both flows can do that : https://docs.stripe.com/payments/save-during-payment - One point that I'd like to highlight is that we have temporarily stopped displaying Apple Pay in setup mode Checkout Sessions and payment mode Checkout Session with payment_intent_data.setup_future_usage set until Stripe can support creating Apple Pay Merchant Tokens with these flows.

Learn how to save payment details and charge your customers later.

Learn how to save payment details during a payment.