#Marroco - replace subscription payment method
1 messages · Page 1 of 1 (latest)
Are you looking to find current payment details, or how you can update the payment method used for subscription invoices?
update the payment method used for subscription invoices
My main problem is some costumers have invoices pastdue and they want to update their credit card but In the website I cant do it, so I want to make throu the API
Gotcha -- so for this you'd want to use a setup intent to gather the new payment details for future use: https://stripe.com/docs/payments/save-and-reuse
then you can update either the subscription default_payment_method or the customer invoice_settings[default_payment_method depending on what you're doing for this currently
the subscription setting takes priority, the customer setting is used when no subscription default is set
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks!
so that means that if I make Set up future payments
and the customer put the information
when I go to his subscription It will show 2 credit cards on file?
the one that he was using before and the new one?
No, the subscription can only be set with a single default
The customer may show two payment methods
and the past invoices might have two different payment methods
but the subscription won't have two
Marroco - replace subscription payment method