I have faced with a really annoying issue. When I type in the paypal credentials and go through the payment, after the popup window it ends up with a Bad Gateway error on the checkout page and to the shop page. What makes it weird is that happens only under Firefox. The payment runs just fine with Chrome.
The payment is successful btw it just returns me to the orders page instead of redirecting to the order-succesful page.
The page I need help with: [log in to see the link]
The payment is successful btw it just returns me to the orders page instead of redirecting to the order-succesful page.
When you say orders page are you referring to the checkout page? The bad gateway response would indicate that the checkout process is timing out. Since the payment is successful, that indicates the timeout is occuring most likely in the Order::payment_complete functionality.
Lots of plugins hook in to the payment complete actions. That’s were order emails are sent etc. I’d recommend going to your WooCommerce > Status > Logs page and look for a “fatal-error” log entry.
This is what I got. Yes it’s the CheckOut page btw and there were no errors there. It really happens only when I’m doing a test purchase under FireFox. From Chrome it’s working perfectly. It looks like for me that from FF, after the pop-up window closes, it’ somehow not returning something to the tab where the purchase has been made.
But I really don’t know. I have turned off almost all the plug-ins and it’s still the same.
This is the only log entry from WC Status:
2023-02-03T15:50:46+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED