#jfcalvo
1 messages · Page 1 of 1 (latest)
Hi there,
AFAIK, no you can't, but you can suggest your customer to use Stripe Customer Portal, in order to manage already created subscription
https://stripe.com/docs/customer-management
Ok, thank you very much
I see that in setup mode once the first card is added is not set as the default payment method
There is any way to do this automatically?
Hi! I'm taking over this thread.
You are using Checkout Session in setup mode, and want to make the new payment method the default one for the customer?
If so, you need to update the customer invoice_settings.default_payment_method after the Checkout Session is completed https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
I need that when a card is added if there is not default payment method set it as default
Then you need to update the customer invoice_settings.default_payment_method as mentioned above.
Depends. If you are using Checkout Session in setup mode I would recommend listening to checkout.session.completed. Otherwise payment_method.attached can also work.
Understood, thanks!