#matt-subscription-paymentmethod
1 messages · Page 1 of 1 (latest)
matt-subscription-paymentmethod
@lavish leaf it depends a bit on what your question means. Can you provide an extra sentence or two with some more context?
we recently started using the react payment element to create subscriptions. We used to be able to modify the users default payment method on the users account, but that doesn't work now. We believe its because the subscription has a default payment method. We're not sure how to modify that.
Gotcha, do you have a concrete example I can look at like an exact Customer id cus_123 and Subscription id sub_123?
Okay so that Subscription has its default_payment_method set
so what you need to do is collect a new PaymentMethod and attach it to the Customer, usually via a SetupIntent, and then you call https://stripe.com/docs/api/subscriptions/update and you set default_payment_method to the new one
Ok Ill look into that ty