• Resolved patchcad

    (@patchcad)


    Hello,

    Since updating WooCommerce to version 5.6.0 the other day, PayPal integration has broken down. This is true for both the standard PayPal payment method and the more recent PayPal Payments plugin which supports Pay Later and PayPal’s credit card processing.

    When clicking on the PayPal yellow button, the PayPal login window opens momentarily but quickly closes and an error message appear above the checkout: “Something went wrong. Please try again or choose another payment source.”

    I believe I found the culprit in the logs:

    2021-08-20T13:43:56+00:00 CRITICAL Uncaught WooCommerce\PayPalCommerce\Button\Exception\RuntimeException: Could not validate nonce. in /home/patchc5/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/class-requestdata.php:50
    Stack trace:
    #0 /home/patchc5/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/class-dataclientidendpoint.php(69): WooCommerce\PayPalCommerce\Button\Endpoint\RequestData->read_request('ppc-data-client...')
    #1 /home/patchc5/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/class-buttonmodule.php(111): WooCommerce\PayPalCommerce\Button\Endpoint\DataClientIdEndpoint->handle_request()
    #2 /home/patchc5/public_html/wp-includes/class-wp-hook.php(303): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalCommerce\Button\{closure}('')
    #3 /home/patchc5/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
    #4 /home/patchc5/public_html/wp-includes/plugin.php(470): WP_Hook->do_act in /home/patchc5/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Endpoint/class-requestdata.php on line 50

    Some kind of a nonce nonsense.

    The browser’s Console reports this error:

    [Error] Failed to load resource: the server responded with a status of 500 () (www.patchcad.com, line 0) // (https://www.patchcad.com/?wc-ajax=ppc-create-order)
    
    [Error] create_order_error – {err: "The string did not match the expected pattern.???h…nt=capture&enable-funding=venmo,paylater:2:141569", timestamp: "1629531497240", referer: "www.paypal.com", …}
    
    [Error] click_initiate_payment_reject – {err: "The string did not match the expected pattern.???h…nt=capture&enable-funding=venmo,paylater:2:141569", timestamp: "1629531497246", referer: "www.paypal.com", …}
    
    [Error] unhandled_error – {err: "The string did not match the expected pattern.???h…nt=capture&enable-funding=venmo,paylater:2:141569", timestamp: "1629531497261", referer: "www.paypal.com", …}
    
    [Error] Error: The string did not match the expected pattern.
    	(anonymous function) (buttons:1317:19223)

    Is anybody else experiencing this?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @patchcad

    thank you for reaching out to us and providing these details. We are aware of other occurrences of this problem. It looks like the error is being triggered from wc-ajax-ppc-create-order that you showed us and we have got a bug ticket open for this and our developer to look into it in order to create a fix for it.

    I will link this thread to the bug so that you will be updated once we have a solution available for you.

    Kind regards,
    Joost

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    The reported issue should be resolved with the latest version 1.6.2, if not before already.
    Since there hasn’t been any activity here in a while, so I will mark this thread as resolved. If you have any further questions or when any issues remain, please feel free to create a new thread and reference this one if needed.
    Thank you! ??

    Kind regards,
    Niklas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Could not validate nonce O_o’ is closed to new replies.