#jarrett
1 messages · Page 1 of 1 (latest)
What exactly do you mean here? You determine the payment methods for an invoice using your invoice template settings over overriding with the payment_settings:
https://stripe.com/docs/api/invoices/create#create_invoice-payment_settings-payment_method_types
https://dashboard.stripe.com/settings/billing/invoice
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes, but until you finalize the payment_method_types is nil
so I don't know what payment_method_types will be supported
Is the payment_method_types property on the invoice's payment intent filled out?
and I can't change it after it's finalized
for example, i created this invoice with the API in_1Mbrt4F6KG2nMs1lgV69yeLx
it's a draft invoice and the payment_method_types is nil
now if i wanted to show my user a list of payment method types to choose from, I have no way to tell what I can give them.
Oh, before it is finalized. Have you tried to retrieve it as an upcoming invoice? https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I didn’t try that but let me see
how would I even do that
i can't give that an invoice
and when I give it the customer for the invoice it says there is nothing because I assume that only works for invoice items that aren't attached to an invoice
Good question, looking in to this.
As far as I can see, you might have to either recreate the invoice items in that call's invoice_items array
i don't understand what you mean
you're saying to call upcoming with the items from the draft invoice?
doesn't matter either way
the payment_method_types is still nil
Darn, thanks for checking. Apologies that I didn't get to try that call myself. Unfortunately I don't think there is a way to know this for sure on an invoice before it is finalized then.