#ryuuuu
1 messages ยท Page 1 of 1 (latest)
Hello ๐
default_payment_method is an expandable object
https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
You need to expand it
https://stripe.com/docs/api/expanding_objects
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.
hmm is this right?
im getting the right answer but
it feels wrong having such a deep search
i wonder if theres any better way to do it
also for w/e reason my IDE is saying deafault_payment_method is not a real thing (yellow underline) but it does return the right answer
The other option would be to just making another API call to retrieve the PaymentMethod object using its ID separately