#eugnie-uyb_api

1 messages ¡ Page 1 of 1 (latest)

pallid harborBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1329468992519274548

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

restive horizon
#

Hello

#

What do you mean exactly by "the payment methods on a related Invoice"?

#

You are trying to retrieve the PaymentMethod used to pay an Invoice?

chrome lark
#

Hello I want to get the payments methods available to pay an invoice.

restive horizon
#

Like the payment_method_types?

#

Let's back up

#

What are you trying to accomplish here?

chrome lark
#

I want to get a list of invoices to implement in my app. And in the list I want to show the active types of payments methods so my clients can see how they can pay their bills. But I have trouble finding how to get this information with an API call.

restive horizon
#

When you say "active type of payment methods" do you mean those already attached to a Customer? Or what could potentially be collected to pay the Invoice?

chrome lark
#

the ones already attached to a customer

restive horizon
chrome lark
#

When I tried use the List a Customer's PaymentMethods endpoint I have no data but I can see this on the dasboard :

#

Those are the information I am trying to get

restive horizon
#

That indicates the new payment methods that can be collected to pay the Invoice

#

That does not indicate those are already collected and attached to the Customer

chrome lark
#

ok I see, how can I get the new payment methods ?

restive horizon
chrome lark
#

I my invoice object te payment_method_types is null :

restive horizon
#

Can you share the Invoice ID?

#

Ah actually that is likely null unless you are setting it explicitly. Sorry, you wnat to expand the PaymentIntent and look at its payment_method_types

chrome lark
#

in_1MH8F3JpByXW1DEUFHGuiJkH

restive horizon
#

Yeah sorry, you'll want to do the above instead.

chrome lark
#

Thank you I will try to expand te payment settings

chrome lark
#

Hello again, I tried to expand data.payment_settings but I had no much more infos; So I tried to expand data.payment_settings.payment_method_types but I had an error message saying : "This property cannot be expanded (data.payment_settings.payment_method_types)"

restive horizon
#

You should expand payment_intent

#

Then you look at the payment_intent.payment_method_types

chrome lark
#

Ok, I tested that and I got what I want. Thank you very much for your time.