I'm using the elements "Retrieve Checkout Session" & "List Checkout Session Line Items" in my server connect API. How do I catch errors and empty responses from Stripe?
Here's an example of what I'm trying to capture:
I don't know how to retrieve this response from within the API. I'd like to capture all of it and send it in an email to myself.
"Set Value" to $_ERROR only captures the value of "message" in the response. While this is helpful, I'm still hoping there's a way to capture the full response.
Have you tried a try/catch yet? I haven't tried this so don't know if it works on not.

Hi @TwitchBlade, yes I'm currently using Try/Catch and capturing $_ERROR but it's just the value of the "message". The issue with Try/Catch is that I no longer see the full Stripe response in the dev tools output.
bump. $_ERROR doesn't work to capture the error returned by a Stripe API call...even when "output", "throw errors", and "pass errors' are selected in the API Action component. How do we access the returned error message?
Here's what I see in the webserver logs for the error being returned, but can't figure out how to capture that with a Set Value step...
bump bump. This is a bug!!!