#brandon_20831
1 messages · Page 1 of 1 (latest)
Happy to provide more details about our custom checkout page / payment information page if helpful
Hello
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=setup will be the better guide to look at
Basically after submission you call your backend to create a SetupIntent and then pass the client secret to your frontend to confirm just like with Card Element
Ah gotcha, that makes more sense thanks for the information and updated documentation. Are there any concerns I need to be aware of from the fact that subsequent calls will create a new setup intent each time for the same customer?
No concerns, just more objects. That route is fine, or you can re-use an already created one for that Customer if you want.
Really up to you for that
Sounds good, thank you! Have a great day
Sure thing
Apologies, one more question here if that's alright:
That got things mostly working, however the call to confirmSetup now fails with the error:
Payment details were collected through Stripe Elements using automatic payment methods and cannot be confirmed with a Setup Intent configured with payment_method_types.
I am explicitly limiting payment method types to card on the backend (since that's all we currently support), is there something else I need to do on the frontend to make this match up?
Yep you set paymentMethodTypes in your options object on the frontend in that case: https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=setup#additional-options
Or, you could just use Automatic Payment Methods and just limit to Cards in your Dashboard
Then it will be easier to update to support other Payment Method Types in the future
As you won't need to change your code
Just change your Dashboard settings
Ah thank you, was looking at the confirm call types instead of the element options 🤦♂️