#steven-customer-defaultpaymentmethod
1 messages ยท Page 1 of 1 (latest)
HI ๐
You would update the Customer object. Specifically the invoice_settings.default_payment_method property
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
I know how to do it if theres a subscription but theres not one nor an invoice created yet. The customer has 2 cards and wants to change the default
is that still set under invoice then?
Yes
The naming is a bit confusing but this is how you set the customer's default payment method for anything that uses a Payment Method.
ok thank you
Happy to help ๐