#Mathieu Ducrot-setup-intents

1 messages ยท Page 1 of 1 (latest)

white tiger
#

Hello! Give me a few minutes and I can help you out!

jagged elm
#

@white tiger sure thanks for your time

white tiger
#

I can't find how to tell stripe to set the payment method as default when the confirmSetup succeeded.

This is something you have to do in a separate API by updating your customer and setting invoice_settings.default_payment_method. We can automatically attach the payment method to a customer, but we won't automatically make it the default

#

So yup! You're on the right path ๐Ÿ™‚

jagged elm
#

ok so indeed i don't need to call https://stripe.com/docs/api/payment_methods/attach?lang=php since the payment method is already attach on confirmSetup, i just need instead to customer->update the invoice_settings.default_payment_method param with the pm_id has you say.

Still i'm kinda sad that there is no option to automatically make it as default ๐Ÿ˜’ but anyway i see where i'm going now, thanks !