#JontyBehr
1 messages · Page 1 of 1 (latest)
Hi there, so you are using SetupIntent + PaymentElement integration, and you want to set the collected payment_method to Customer’s invoice_settings.default_payment_method ?
We've used this guide to create a subscription: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements. Lets say a few months later the card needs to be updated. Do you have a step by step guide on what we need to do to handle the card update?
You should just use customer billing portal (https://stripe.com/docs/customer-management) and let your customers update the payment methods themselves.
I can't use the billing portal, I HAVE to use elements
OK. https://stripe.com/docs/payments/save-and-reuse?platform=web you can learn how to use setupIntent + paymentElement to collect a payment method
Then follow the previous doc (https://stripe.com/docs/payments/checkout/subscriptions/update-payment-details#set-default-payment-method) to update the default_payment_method for either customer or subscription.
Ty