#Mathieu Ducrot-setup-intents
1 messages ยท Page 1 of 1 (latest)
@white tiger sure thanks for your time
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 ๐
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 !