December 16, 2020 at 9:01 pm #3470
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!)
Thanks!December 16, 2020 at 11:35 pm #3471
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.December 19, 2020 at 11:52 am #3474
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 38December 20, 2020 at 12:19 am #3475
Looks like the zip code verification is failing. Did you enable that option in your Stripe account?December 23, 2020 at 8:45 pm #3488
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’.December 23, 2020 at 11:26 pm #3490
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.December 23, 2020 at 11:44 pm #3491
You must be logged in to reply to this topic.