#blinkdaffer

1 messages · Page 1 of 1 (latest)

rustic basaltBOT
near wing
#

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

slow wagon
#

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

near wing
#

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

slow wagon
#

aaah

#

i get it

#

and if i want to update overall for the customer is use the customer object and update

#

do i have that right ?

near wing
#

Yep

slow wagon
#

ty

near wing
#

That link shows the order

slow wagon
#

so much

near wing
#

There's an order we check for default pm

#

No problem