#dacian.capitan

1 messages · Page 1 of 1 (latest)

lunar spadeBOT
tardy mantle
#

Can you speak more to the issue you're having?

wild night
#

tried that but have null

#

customer.getInvoiceSettings().getDefaultPaymentMethod();

#

.addExpand("invoice_settings.default_payment_method")

#

is this the correct expandable setup?

tardy mantle
#

What's the cus_xxx ID you're using?

wild night
#

cus_NEaRM4RZx6oXfx

tardy mantle
#

Looks like its set as the default_source on that particular Customer

wild night
#

so if its default i should get it from customer default source

tardy mantle
#

Well if it's a Source object (which it is in the case of this customer), yes

wild night
#

we are using payment methods

#

that means payment methods doesn't have defaults?

tardy mantle
#

You're not using Payment Methods API, you're using the Sources API. See the API request I shared

wild night
#

ok, now in understand

#

thanks