#modev1233214_unexpected

1 messages ยท Page 1 of 1 (latest)

bronze basaltBOT
#

๐Ÿ‘‹ 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/1443584000517079232

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

twilit cradle
#

can you share the evt_xxx ID please

storm vigil
#

sure thing, one sec

#

evt_1SXvhGADFEJCk2PPxGGq4xW9

twilit cradle
#

to be clear you want to know why the payment failed?

storm vigil
#

yes

twilit cradle
#

got it. in that case you don't want last_finalization_error โ€“ the invoice is already finalized, and payment attempt, hence why it's null

storm vigil
#

I see, that makes sense. Is there another property I can rely on to find out why the failure occurred? ๐Ÿค”

twilit cradle
storm vigil
#

ok, so I queried the payment intent included in the event. However, the last_payment_error there in is also null ๐Ÿ˜…

#

pi_3SWeVWADFEJCk2PP1d1waCaY if you wanna check

twilit cradle
#

yeah I see. weirdly we don't constitute this as a payment failure โ€“ the issue is there's no attached payment method to actually pay the invoice with

storm vigil
#

I see, so potentially if there is no last_payment_error we should make a call to check if that customer as a payment method...

#

as that would effectively be the "error" causing the invoice failure

#

or is there another way?

bronze basaltBOT
twilit cradle
storm vigil
#

ok, thank you very much! we can rely on payment_method and status in this case

#

much appreciated! ๐Ÿ™‡โ€โ™‚๏ธ