#iltofa

1 messages · Page 1 of 1 (latest)

amber siloBOT
snow sentinel
#

Hi 👋 if you're looking for a hosted flow that can do this, I would recommend looking into implementing the Customer Portal:
https://stripe.com/docs/customer-management

If you want to handle this in your site, then you can use one of the flows shown here to collect new payment method details:
https://stripe.com/docs/payments/save-and-reuse
Then once a new Payment Method has been created, you can update the default_payment_method field on the Subscription to change which payment method it will charges:
https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
Unless you're setting that at the Customer object level, then you would update this field:
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method

amber siloBOT