• Resolved thekeytechnology

    (@thekeytechnology)


    Hi there,

    sadly, after performing payment at PayPal, the page the user is redirected to shows an error 500:

    This is the URL: https://www.golfshop-maas.de/wc-api/paypal_plus/?paymentId=PAY-9P68336200563604ELETL56Q&token=EC-0MG10295D3161851D&PayerID=FZS4UGWC8GAEU

    This is the error:
    [25-May-2017 11:26:43 UTC] PHP Fatal error: Uncaught InvalidArgumentException: paymentId cannot be null in /nas/content/live/maasgolf/wp-content/plugins/woo-paypalplus/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/ArgumentValidator.php:25
    Stack trace:
    #0 /nas/content/live/maasgolf/wp-content/plugins/woo-paypalplus/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php(580): PayPal\Validation\ArgumentValidator::validate(NULL, ‘paymentId’)
    #1 /nas/content/live/maasgolf/wp-content/plugins/woo-paypalplus/src/WC/Payment/PaymentExecutionData.php(107): PayPal\Api\Payment::get(NULL, Object(PayPal\Rest\ApiContext))
    #2 /nas/content/live/maasgolf/wp-content/plugins/woo-paypalplus/src/WC/Payment/WCPaymentExecution.php(58): WCPayPalPlus\WC\Payment\PaymentExecutionData->get_payment()
    #3 /nas/content/live/maasgolf/wp-content/plugins/woo-paypalplus/src/WC/PayPalPlusGateway.php(179): WCPayPalPlus\WC\Payment\WCPaymentExecution->execute()
    #4 [internal function]: WCPayPalPlus\WC\PayPalPlusGateway->execute_payment(”)
    #5 /nas/content/live/maasgolf/wp-includes/cla in /nas/content/live/maasgolf/wp-content/plugins/woo-paypalplus/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/ArgumentValidator.php on line 25

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Biont

    (@biont)

    Hello thekeytechnology,

    This is interesting. I will have a look at this right now. In the meantime, could you please post the PayPal logfile located at wp_content/uploads/wc-logs/ ?

    Regards,

    Moritz

    Plugin Author Biont

    (@biont)

    Hi thekeytechnology,

    We’re clearing session data when the cart contents change. This is to ensure that when you go to checkout, the plugin will attempt to create a new Payment item and store its new ID in the session.

    Is it at all possible that the user session changed his cart contents (maybe in a separate tab) while being on the paywall? Doing so results in an error because the plugin is expecting a Payment ID to be there.

    In any case, this is a way to reproduce your problem. I will come up with a solution. Thank you for your report.

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hi thekeytechnology,

    since we haven’t heard back from you, I’m going to mark it as resolved. If you’re still having problems, feel free to let us know ;),

    Btw, If you find PayPal Plus is useful for you, we would really appreciate if you leave a positive review and rating.

    This would encourage us to develop new free features and provide free support:
    https://www.ads-software.com/support/plugin/woo-paypalplus/reviews/#new-post

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error 500 after coming back from PayPal’ is closed to new replies.