#elBR
1 messages · Page 1 of 1 (latest)
So, for next recurring charges the payment method would lways be the customer default payment method
There is a parameter to set the PaymentMethod to be the Subscription's default_payment_method: https://stripe.com/docs/api/subscriptions/create?lang=ruby#create_subscription-payment_settings-save_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.
But if you are asking about set it as the customer's default_payment_method, then unfortunately no, you may need to listen to webhook to set it yourself
ie. listen to when the Payment succeeded and set to customer.invoice_settings.default_payment_method
if I don't set the default_payment_method on subscription, what will be the payment method for next charges?
and what will be in case user does not have any default payment method saved?
When the times comes the Subscription will try to look at its own default_payment_method first, then default_source, then customer's invoice_settings.default_payment_method then customer.default_source
and what if there none of them?
The Subscription will fail to charge, change to past_due
what is the difference between default payment method and default source