#mathieu-stn_api
1 messages · Page 1 of 1 (latest)
👋 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/1232535232859734036
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Would that be enough to add error.payment_intent.latest_charge as expanding field?
hello! I'm not sure what you mean by is it enough? Have you tried and run into any errors?
We are trying atm using the stripe console. But just wondering if that's the way to go. Are we expanding the objects in error responses?
maybe lets take a step back
what are you trying to achieve or what information are you looking for that you're looking to expand error.payment_intent.latest_charge?
latest_charge on error used to be expanded
but it's not since we've upgraded API version
We use that to extract the outcomeType of the charge and detect if that's fraud
or blocked
We've just tried now to expand it using error.payment_intent.latest_charge but it doesn't work...
req_dBpFOcSqUEgsZi
To find the charge outcome from an error object, first get the Payment Intent that’s involved and the latest Charge it created - https://docs.stripe.com/error-handling#payment-errors
That means we need to fetch the charge (another call to Stripe I guess)
it's probably not possible to simply expand it like how you're doing
😦