#brandon_20831

1 messages · Page 1 of 1 (latest)

sudden shuttleBOT
remote grotto
#

Happy to provide more details about our custom checkout page / payment information page if helpful

silver tundra
#

Hello

#

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

remote grotto
#

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?

silver tundra
#

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

remote grotto
#

Sounds good, thank you! Have a great day

silver tundra
#

Sure thing

remote grotto
#

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?

silver tundra
#

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

remote grotto
#

Ah thank you, was looking at the confirm call types instead of the element options 🤦‍♂️