#pascal_lin-Invoice
1 messages · Page 1 of 1 (latest)
You would want to expand the payment_intent and find the payment_method from there: https://stripe.com/docs/api/invoices/object?lang=ruby#invoice_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
do you mean I have to get the bank card from invoice -> payment_intent -> payment_method -> card?
Yes. The object is here https://stripe.com/docs/api/payment_methods/object#payment_method_object-card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay, I have tried it and it worked, thanks
though I have to add extra two request😂
Did you use expanding resource?
Calling Retrieve Invoice API and passing expand = ["payment_intent.payment_method.card"]? I believe you can expand up to 4 levels
You still can expand from that. Sorry for the API Reference