• Resolved chr1s9r

    (@chr1s9r)


    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
    Chris

    P.S.: before the question comes up. I am using PHP in Version 7.0.21

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @chr1s9r

    Do you have products with less than EUR 1,50 because you got this error

    {"issue":"Amount cannot be zero"}

    but this shouldn’t break your whole site. Can you please send a message to [email protected] with your PayPal Plus log files, a screenshot of your PP+ setting and your WooCommerce status report?

    Thank you so much.

    Thread Starter chr1s9r

    (@chr1s9r)

    Requested Data sent via Mail.

    As mentioned above we are talking about orders where a 100% voucher is applied, therefore the amount is equal to 0€.

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @chr1s9r,

    I just replied to your ticket. In your PayPal log PayPal sent following message:

    {“name”:”VALIDATION_ERROR”,”details”:[{“field”:”transactions[0].amount”,”issue”:”Amount cannot be zero”}],”message”:”Invalid request

    PayPal will reject payments with an amount of zero, no matter if a user used a coupon or not. 0 as amount isn’t allowed.

    Please ask your Hosting Provider for a server error log file, so we can have a look at the 500 error message. Please send it to me via ticket system.

    Thank you so much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Checkout 500 Error’ is closed to new replies.