#jarrett_prieview-invoice-payment-methods
1 messages ยท Page 1 of 1 (latest)
๐ 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/1488200955941097602
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
If you preview the invoice I think we should preview the payment method types as well. Can you try that in sandbox mode and let me know if it works for you? https://docs.stripe.com/api/invoices/create_preview
can i preview a non subscription invoice?
Yes definitely, can provide the same info on invoice items and such to that preview call
oh let me give that a shot
jarrett_prieview-invoice-payment-methods
i'm looking at the preview invoice method and it doesn't have options for things like collection_method which I know would impact payment method options. how would this possibly work?
also, i just tried tihs and payment_method_types is nil when I tested it
Hello ๐
I'm stepping in as my colleague needs to go.
I think there is a more fundamental problem with this approach. When you create a one-off Preview Invoice it remains in draft status. At this point, since it has not finalized, the payment method types have not been finalized.
the problem we're trying to solve is how do we show our users what payment methods are valid for an invoice
I'm testing a few approaches now
the exact situation is we have team members that create invoices for customers. part of that process is selecting "Automatic" or specific payment methods. I don't know how to tell which ones are available though.
right now we have it all hardcoded to a fixed currency based list, but it's not the most ideal
Okay, I'm sorry to report that we don't appear to expose this at all until an Invoice is finalized. The only way I can think of to get this information would be to create a dummy Invoice and finalize it.
If you wanted to go that route I would recommend creating a Sandbox account specifically for this feature and replicate Customer and Price details there to ensure you get the same results. This is also a non-ideal situation.
I will be filing a feature request that we return the expected payment methods for each Invoice as part of the preview feature and a separate feature request that we include the collection_method parameter to get closer to parity with the Invoice API
even an endpoint that helped expose payment methods by options or something. like currency, collection type, one off or subscription would be nice.
i feel like there are a million payment methods, and it's impossible to know what I can use with what. even from a documentation perspective. trying to find out what the ID name of paymetn methods is hard. like we have us_bank_account and customer_balance in our code and it's always a shit show trying to remember what is what
especially since customer_balance is actually Bank Transfer and us_bank_account is ACH Direct Debit, unless I've confused them again
Yeah the naming of bank transfers to customer_balance is a serious pain point
someone should just rename it and make it backwards compatible with the old name. same for us_bank_account. call it ach_direct_debit
is there a docs page in the help center that just lists every payment method with all the information?
i've found scattered version, none of which include everything
Unfortunately "all the information" is a bit much for a single page.
i can't even find a table with Name, API code name, Currency support, Subscription Support
there should just be like a google sheet or something. like a gigantic ugly table
And unfortunately some of the currency support or susbcription support is "it depends"
Because some PMTs support different currencies based on where your account is located and support Subscriptions but only if your account meets certain requirements
The explanation of which requires it's own page
It does make herding cats seem simple by comparison
Our Overview doc is far too brief but gives you a central place to scan all options and choose where to dig deeper
i think the problem i find is there is all these different pages, i can never remember where any of them are or which one "might" have the answer
That's a fair assessment
and still no none of these do I know that ACH Direct Debit is us_bank_account
the only way you find that is by searching the docs for us_bank_account and you run into a page like this that happens to use it https://docs.stripe.com/changelog/clover/2026-01-28/financial-address-account-holder-information#whats-new
but even that doesn't help me find out that it's ACH Direct debit. i have to click on this page in search to find it under "Blocked Bank Accounts" and assume that it's the key. https://docs.stripe.com/payments/ach-direct-debit#blocked-bank-accounts
Yeah I agree. So, I have filed 2 separate feature requests for our Invoice Preview API to support the collection_method parameter and to return the anticipated payment method types in the payload.
Additionally I filed a suggestion with our docs team to create a large table of payment method types by category that include name, API code, merchant country, currencies supported, and whether recurring charges are supported. I suggested we include filters for currency, merchant country, and recurring charges. We can then link to additional docs for each Payment Method from that table. The idea is to allow you to filter to a list of paymemt method types that make sense for your business and use that to guide your research
I can't make any promises if/when any of these requests will result in actual changes but at least the requests have been made and the interest in these features has been logged.