#varovas
1 messages · Page 1 of 1 (latest)
Depends at which level you've set the default PM: at the Customer level, or the Subscription level
If Customer, just update: https://stripe.com/docs/api/customers/object#customer_object-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.
Otherwise if Subscription, you'll need to update each individually yes
Hmm, we are setting default payment method with default_payment_method' => $paymentMethod->id, bet when we create subscription, we additionally are passing default payment method. So if we would not do that, then subscription would use invoice setting default_payment_method ?
No, default_payment_method on the Subscription takes precedence: https://stripe.com/docs/api/subscriptions/object#subscription_object-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.
In that case you'll need to update each sub_xxx manually
Thank you for you assistance