#mathieu-stn_api

1 messages · Page 1 of 1 (latest)

void tokenBOT
#

👋 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.

slate forge
#

Would that be enough to add error.payment_intent.latest_charge as expanding field?

quasi sierraBOT
somber grove
#

hello! I'm not sure what you mean by is it enough? Have you tried and run into any errors?

slate forge
#

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?

somber grove
#

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?

quasi sierraBOT
slate forge
#

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

somber grove
slate forge
#

That means we need to fetch the charge (another call to Stripe I guess)

somber grove
#

it's probably not possible to simply expand it like how you're doing

slate forge
#

😦