#mike-dotnet-failure

1 messages ยท Page 1 of 1 (latest)

mystic yarrowBOT
hardy wadi
#

mike-dotnet-failure

#

Hey @swift relic what's your ask/question?

swift relic
#

hey there

#

why did it throw the error rather than assigning it to the LastPaymentError property?

hardy wadi
#

I don't know, what's the error exactly? Do you have an example request id req_123 I can look at?

swift relic
#

i do not unfortunately

#

i have the payment number here but i do not know of a safe way to transfer it to you

#

this is a public chat right

hardy wadi
#

Every API error contains detailed information about both the error itself (code, message, etc.) and a request_log_url

swift relic
#

right i see the error

#

but the call to PaymentIntentService.ConfirmAsync has a LastPaymentError property in the result

#

the error was thrown in .NET rahter than assigning it to that property

hardy wadi
#

I understand, but there are many types of errors that can happen. Maybe you had a network error or a rate limit error. Those wouldn't make any sense to assign in last_payment_error

swift relic
#

thank you for that it was actually a no funds available error

#

which seems like a payment error ๐Ÿ™‚

hardy wadi
#

Yeah I can't really do much without more details like an exact request id

swift relic
#

how do i share that securely with you?

hardy wadi
#

a request id is not really sensitive, req_123

swift relic
#

req_9PikyywoY2Kh9M

#

thank you ๐Ÿ™

hardy wadi
#

okay so this is a PaymentIntent confirmation. It always errors synchronously to tell you the payment failed and for you to catch the error. That's how our API always works. It also has last_payment_error set as a record of what happened

swift relic
#

ok i missed that somehow in implementing this

#

i saw the LastPaymentError and was using that to check for errors rather than catching them

#

i will do that

#

thank you very very much for your time @hardy wadi and for your efforts here

#

they are appreciated

#

๐Ÿ‘