#dacian.capitan
1 messages · Page 1 of 1 (latest)
Sure, this is the field you want: 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.
Can you speak more to the issue you're having?
tried that but have null
customer.getInvoiceSettings().getDefaultPaymentMethod();
.addExpand("invoice_settings.default_payment_method")
is this the correct expandable setup?
What's the cus_xxx ID you're using?
cus_NEaRM4RZx6oXfx
Looks like its set as the default_source on that particular Customer
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 if its default i should get it from customer default source
Well if it's a Source object (which it is in the case of this customer), yes
You're using the Sources API, not Payment Methods: https://dashboard.stripe.com/test/logs/req_MmNQms1AtXRfAL
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You're not using Payment Methods API, you're using the Sources API. See the API request I shared