#blinkdaffer
1 messages · Page 1 of 1 (latest)
You won't be able to tell by looking at the payment method objects. There's several different concepts of a default payment method in Stripe. There's a default payment method that can be set on each individual subscription: https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method, there's the default payment method used on invoices: https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method, and there's also default_source: https://stripe.com/docs/api/customers/object#customer_object-default_source
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so i cant set one of the payment methods as default on the account using the api
what if my customer had many payment methods i wanted to change payment methods for future transactions
You can
That's why I shared all those links
There are multiple places you can set a default payment method depending on what you're trying to do and your integration path
aaah
i get it
so if i update for idiviual subsctions , i can use 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.
for all invoices 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.
and if i want to update overall for the customer is use the customer object and update
do i have that right ?
Yep
ty
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That link shows the order
so much