#thepera

1 messages · Page 1 of 1 (latest)

forest windBOT
smoky imp
#

Hi there

#

Hmmm so you are starting to see a 500 error on your end when trying to catch a card decline?

steep roost
#

Yes, the normal operations still work as expected (like when we use a non declined card the payment intent is successfully created)

silver cove
#

Hi 👋 just wanting to make sure we're all aligned here. The 500 that you're referring to, is that being returned by the Stripe API, or is that surfacing somewhere else?

steep roost
silver cove
#

What happened leading up to that?

steep roost
#

This is the complete logs we have:

#

url heroku/router: at=info method=POST path="/v7/customers/cus_O4OgesspznfxXX/paymentIntents/create" host=url request_id=2348b78f-04fc-43fd-a0c4-13fc76206216 fwd="70.73.97.77" dyno=web.1 connect=0ms service=1456ms status=500 bytes=221 protocol=https

url app/web.1: [12-Jun-2023 13:31:09 America/Edmonton] PHP Fatal error:  Uncaught GuzzleHttp\Exception\RequestException: cURL error 3:  (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:201

url app/web.1: #1 /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError()

#

I have replaced our url with just "url"

silver cove
#

this part:
/v7/customers/cus_O4OgesspznfxXX/paymentIntents/create
just making sure, this is pointing to a Stripe API? If so, I think the v7 should be replaced with v1

steep roost
#

ohh no that is our own server versin

silver cove
#

oh gotcha, so it's your server that is responding with the 500?

steep roost
#

at the end it is correct

silver cove
#

Sorry, I'm not sure I'm following, what is correct?

What I'm trying to determine now, is where that 500 is being surfaced. Whether that is being returned to your server by a request it is making to our API, or if it is being surfaced internally within your server's logic.

steep roost
#

The 500 is coming when we hit our server endpoint. It seems to only fail when we call the Stripe API for a failed payment and Guzzle errors out when trying to catch the error.

silver cove
#

Hm, is the code running on your server crashing when the endpoint is called then?

steep roost
#

yes it is

forest windBOT
silver cove
#

What is the error being surfaced there?

steep roost
#

i believe it is a 500

#

sorry if im not being clear