#sunnylbk

1 messages ยท Page 1 of 1 (latest)

soft tuskBOT
wild hornet
#

Hello, can you send me the ID of an invoice that you are seeing this on (it is safe to share invoice IDs)

dense crater
#

in_1NnLvLFDHhS1SIerafjnCYHT

wild hornet
#

I'm seeing errors in my developer console for this but am not immediately sure what is causing them. Still looking and will get back to you

#

Do you know about how long you have been seeing this issue? And did it happen after a code change or did it just pop up out of the blue?'

dense crater
#

Started seeing this like 30 min ago, there was a change in the code where we were passing currency in the invoice and line items during creation

wild hornet
#

So it looks like this is partially coming from wechat pay being available as a payment method on the invoice but we definitely should not be erroring out like this. It looks like this may be a bug either in what payment method types are included on the invoice or on how the page is handling them.

I will consult my colleagues on this and get back to you

dense crater
#

Thanks!

#

Wechat doesn't seem enabled

wild hornet
#

Gotcha, good to know. So the issue may be more with our payment method type calculation for the invoice. Still looking in to this and will get back with what we can find

#

Hey @dense crater we've identified the issue on our side and are working to resolve it. You shouldn't need to change any code on your side to fix this as far as I can see. For testing right now, you may want to temporarily specify payment_method_types: ['cards'] when creating these invoices if you are only trying to test with card payments https://stripe.com/docs/api/invoices/create#create_invoice-payment_settings-payment_method_types

#

And thank you for flagging this!

spare anchor
#

๐Ÿ‘‹ @dense crater this should now be resolved.

#

Thanks for surfacing.

dense crater
#

๐Ÿ‘

spare anchor
#

Feel free to test again with that Invoice

#

Let us know if you run into any further issues

dense crater
#

Card form is working now. But wechat option is showing up, we did not enable it

spare anchor
#

You would need to turn that off in your Invoice settings.

dense crater
#

Got it. But, I wasnt setting any payment method types specifically for this invoice.

#

Is this a result of this invoice being created earlier to the issue getting fixed?

spare anchor
#

Right that means it falls back to your Dashboard settings for the PMTs if you don't explicitly set any in your Invoice creation request.

#

That is how it works regardless of the issue that you experienced

dense crater
spare anchor
#

That's not the right page in the Dashboard

#

See my link above

#

There is a different Dashboard settings page specifically for Invoices

#

Ah I'm sorry. Actually this is due to your Connected Account

#

Since you are using on_behalf_of

#

It is their Invoice settings that dictate this if you don't specify payment_settings.payment_method_types

#

Mostly in the flow you are using you likely do want to specify the payment_method_types that you want to support unless you want to leave that in control of your Connected Account(s)