“400 Bad Request Error” when using Stripe
-
When using stripe and woocommerce this message is appearing:
Payment Failed ( Invalid response body from API: 400 Bad Request (HTTP response code was 400, json_last_error() was 4) ).Refresh and try again
I have tried troubleshooting with all plugins and the theme disabled except for the stripe and WooCommerce plugins and the error persists.
I recently changed PHP versions to 8.4 and also updated all my plugins on schedule.
This error log entry is showing up:
2025/01/11 09:11:49 [error] 20200#20200: *2823660 FastCGI sent in stderr:
“PHP message: PHP Warning: Undefined array key “eh_stripe_pay_token” in
/home/wp_3wwgvh/layers-of-learning.com/wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/includes/class-stripe-api.php
on line 742″ while reading response header from upstream, client:
76.240.103.228, server: layers-of-learning.com, request: “POST
/?wc-ajax=checkout HTTP/2.0″, upstream:
“fastcgi://unix:/var/run/nginx-dp-b55827a115_php_84_wp_3wwgvh.sock:”,
host: “layers-of-learning.com“, referrer:
“https://layers-of-learning.com/checkout/“
- You must be logged in to reply to this topic.