#lafafm
1 messages · Page 1 of 1 (latest)
hi! no, there's only a on_subscription value for that field
if you want it to be a customer level default you'd have to manually set it to https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method when the SetupIntent succeeds
E.g. we can listen for a webhook, and setup that payment method as default for a customer as well?
sure
Good, thanks!
Have another question here btw
If we're setting up a default payment method that way
What's the right way to allow user change it?
E.g. what would API actions order look like?
depends, there are multiple ways to implement a 'change your default payment method' for a customer
I'm seeing uncertainties on the fact that we already used subscription setup_intent, and not sure what's the right way to correctly add new payment method
for example
- redirect to the CustomerPortal and the user does it there https://stripe.com/docs/billing/subscriptions/integrating-customer-portal
- use Checkout https://stripe.com/docs/payments/checkout/subscriptions/update-payment-details
- use a custom form https://stripe.com/docs/payments/save-and-reuse and then set you need to pass either or set https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method at the end