Checkout 500 Error
-
Hi,
the Paypal Plus extension for WordPress returns a 500 error which breaks the complete checkout when a customer tries to order with a 100% voucher.
If the voucher is 100% the payment methods are not loaded anymore because paypal plus interrupts is by sending the internal server error:
2018-08-20T15:15:06+00:00 CRITICAL Uncaught Error: Call to a member function getApprovalLink() on null in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woo-paypalplus/src/WC/PayPalPlusGateway.php:517 Stack trace: #0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woo-paypalplus/src/WC/PayPalPlusGateway.php(494): WCPayPalPlus\WC\PayPalPlusGateway->get_approval_url() #1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woo-paypalplus/src/WC/PayPalPlusGateway.php(481): WCPayPalPlus\WC\PayPalPlusGateway->form() #2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/templates/checkout/payment-method.php(31): WCPayPalPlus\WC\PayPalPlusGateway->payment_fields() #3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(210): include('/opt/bitnami/ap...') #4 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/templates/checkout/payment.php(30): wc_get_template('checkout/paymen...', Array) #5 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/includes/
[20-08-2018 01:15:05] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: POST https://api.paypal.com/v1/payments/payment [20-08-2018 01:15:06] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : INFO: Response Status : 400 [20-08-2018 01:15:06] Inpsyde\Lib\PayPal\Core\PayPalHttpConnection : ERROR: Got Http response code 400 when accessing https://api.paypal.com/v1/payments/payment. {"name":"VALIDATION_ERROR","details":[{"field":"transactions[0].amount","issue":"Amount cannot be zero"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"ea9c024ec74c"}
Under no circumstances one plugin such as the paypal plus plugin should break the whole checkout page. Unfortunately, it is not the first time this happens with this plugin. ??
Could you fix the issue by simply not showing the payment method instead of throwing the internal server error?
Thanks
ChrisP.S.: before the question comes up. I am using PHP in Version 7.0.21
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Checkout 500 Error’ is closed to new replies.