You are here: / / Error 500 not explaining reason for failure
Hi! Your plugins are working great, but have a question/suggestion about when payments fail. I am getting a lot of payments failing with an error 500 – when I look up on Stripe the reason, it’s because the person entered the wrong zip-code, which makes perfect sense, but it only tells the user that it’s an ‘error 500’. Is there any way of informing them why it’s been blocked, so that they don’t contact us complaining our website doesn’t work properly (even though it is behaving as we would want!)
Something else on this server is preventing the plugin from fully completing the process that’s why you are seeing an abnormal behavior. The server’s error log will have more details as to what it is complaining about. So look at the server’s error log file immediately after the Error 500 is triggered by the server. The latest entries in that error log file will have clues as to what is failing. The message in the error log file may look cryptic, if you share the error messages from that file, we should be able to read it and provide help.
Hey, thanks for the reply. My error log contains this:
[18-Dec-2020 10:51:50 UTC] PHP Fatal error: Uncaught (Status 402) (Request req_qyZA1C8lTZacXu) The zip code you supplied failed validation.
thrown in /home/deadlock/public_html/digital/wp-content/plugins/stripe-payments/includes/stripe/lib/Exception/ApiErrorException.php on line 38
Looks like the zip code verification is failing. Did you enable that option in your Stripe account?
Yes. I know why it is, I just want to figure out how to tell the customer. How to change Error 500 to something like ‘Zip code verification failed’.
Something else is going on there. That error is not supposed to show as a 500 error. The error is being triggered by the Stripe’s library (that is given to us by Stripe). Are you using the latest version of our plugin and any addons (to make sure the latest Stripe library is being used)?
Post the URL of the page where the payment button is so I can inspect a couple of things using my browser.
Ahh I see… Yes I am using the latest version of all.
Here’s a purchase page:[deadlockedrooms.com/digital/asp-products/the-cyphstress/]
You must be logged in to reply to this topic.