• 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.”

    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support B C. a11n

    (@battouly)

    Hi @patchcad,

    [Error] Failed to load resource: the server responded with a status of 500 ()

    An internal server error like that doesn’t give us much to go with here. It’s hard to know what possibly could’ve triggered that.

    Would you be able to first contact your host to see if they have any logs or information that could provide a clue as to why clicking the PayPal button gives you that error?

    Next, to better understand what’s happening, please share your site’s logs too.

    First, check to make sure that logs are enabled.

    To find the generated logs:

    1. Go to WooCommerce > Status > Logs
    2. In the top right corner, open the drop-down and select the PayPal log that you need, then click view to load it. Here’s what that looks like: https://d.pr/i/tCljQd
    3. Copy/paste the relevant part of the log into your response, so we can take a look.

    Thanks!

    Thread Starter patchcad

    (@patchcad)

    Forgive me @battouly, you’re absolutely right of course. It’s my first time posting here.

    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.

    Plugin Support B C. a11n

    (@battouly)

    Hey @patchcad,

    That is okay, please don’t be sorry. Thanks for sharing the logs.

    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

    Your error message is coming from PayPal Payments, so you’ll want to share your question at https://wordpress.org/support/plugin/woocommerce-paypal-payments/

    PayPal Payments is not supported by folks who work in this support forum (including myself) . We are unable to help you further right here, so we have to redirect you to a correct support channel and close this forum thread/mark it as “resolved”.

    The PayPal Payments plugin is developed and supported by WooCommerce’s marketplace partners, Inpsyde:

    https://d.pr/i/1TZlrS

    Owners of WooCommerce.com accounts are usually able to reach out to Inpsyde directly by creating a ticket and selecting PayPal Payments from the dropdown:

    https://woocommerce.com/my-account/create-a-ticket/?form=ticket

    I hope this helps!

    Thread Starter patchcad

    (@patchcad)

    Once again – thank you very much! I’ll move the question to:

    https://wordpress.org/support/topic/could-not-validate-nonce-o_o/

    Best wishes!

    Mirko P.

    (@rainfallnixfig)

    Great! Thanks for following the advice from @battouly.

    This thread is closed but if you have questions on core WooCommerce plugin feel free to open a new topic.

    Have a good day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PayPal Payment – “Something went wrong”’ is closed to new replies.