#mutchco

1 messages · Page 1 of 1 (latest)

steel laurelBOT
brazen scarab
#

If you are going to immediately charge, you should always use a payment intent. If you do a setup intent and then a payment intent immediately you can get two 3DS requests in a row which can be frustrating to users.

#

Can you tell me a bit more about what you are trying to do here? Is this to achieve a certain UI flow or something?

red pumice
#

Yeah that's basically it.

We want to set a default card on Step 1, using a SetupIntent and then use .confirmCardPayment('{PAYMENT_INTENT_CLIENT_SECRET}') on Step 2.

brazen scarab
#

Gotcha, at the moment we would typically recommend not doing that with our current payment element offerings. You can do the setup intent and then payment intent but as mentioned that can add friction sometimes

#

We do have a beta that would enable flows like this if you are interested though the flow is pretty different than our current one. Basically it would allow you to create a payment method without an intent and then create the payment intent later once you know the price https://stripe.com/docs/payments/defer-intent-creation

red pumice
#

Awesome! Thank you!