#jarrett

1 messages · Page 1 of 1 (latest)

tame fjordBOT
fluid island
#

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

hollow wing
#

yes, but until you finalize the payment_method_types is nil

#

so I don't know what payment_method_types will be supported

outer carbon
#

Is the payment_method_types property on the invoice's payment intent filled out?

hollow wing
#

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.

outer carbon
hollow wing
#

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

outer carbon
#

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

hollow wing
#

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

outer carbon
#

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.

hollow wing
#

is this just another magic Stripe dashboard thing that you can't do with the API?

outer carbon
#

Correct, and also you wouldn't know which of those methods your invoice meets the criteria for.

#

The only way I could think to really know would be to create and finalize and invoice on a dummy customer and then immediately delete it.