Support » Plugin: WooCommerce » Woocommerce Paypal Button Crashes

  • Resolved whojr01


    I have a newly installed the latest WordPress version 5.8.3
    Woocommerce version 6.1.1
    WooCommerce Cart Abandonment Recovery 1.2.13
    WooCommerce PayPal Payments 1.6.4

    Using production/sandbox connections results in failure to connect to paypal when the paypal payment button is clicked.

    On Page Error: “Something went wrong. Please try again or choose another payment source.”

    Opening up Chrome Developer Tools shows the following repeatable error message:

        "err": "SyntaxError: Unexpected token < in JSON at position 0\n\nError: Unexpected token < in JSON at position 0\n    at Or.error ("REMOVED FOR SECURITY REASONS"&currency=USD&integration-date=2021-09-17&components=buttons,messages&vault=false&commit=false&intent=capture&buyer-country=US&disable-funding=card&enable-funding=venmo,paylater:2:128973)\n    at Object.<anonymous> ("REMOVED FOR SECURITY REASONS"&currency=USD&integration-date=2021-09-17&components=buttons,messages&vault=false&commit=false&intent=capture&buyer-country=US&disable-funding=card&enable-funding=venmo,paylater:2:137340)\n    at JSON.parse (<anonymous>)\n    at Br.o ("REMOVED FOR SECURITY REASONS"&currency=USD&integration-date=2021-09-17&components=buttons,messages&vault=false&commit=false&intent=capture&buyer-country=US&disable-funding=card&enable-funding=venmo,paylater:2:137199)\n    at Br ("REMOVED FOR SECURITY REASONS"&currency=USD&integration-date=2021-09-17&components=buttons,messages&vault=false&commit=false&intent=capture&buyer-country=US&disable-funding=card&enable-funding=venmo,paylater:2:137352)\n    at Jr.u.on ("REMOVED FOR SECURITY REASONS"&currency=USD&integration-date=2021-09-17&components=buttons,messages&vault=false&commit=false&intent=capture&buyer-country=US&disable-funding=card&enable-funding=venmo,paylater:2:142023)\n    at Jr ("REMOVED FOR SECURITY REASONS"&currency=USD&integration-date=2021-09-17&components=buttons,messages&vault=false&commit=false&intent=capture&buyer-country=US&disable-funding=card&enable-funding=venmo,paylater:2:142143)\n    at"REMOVED FOR SECURITY REASONS"&currency=USD&integration-date=2021-09-17&components=buttons,messages&vault=false&commit=false&intent=capture&buyer-country=US&disable-funding=card&enable-funding=venmo,paylater:2:148268\n    at Function.e.try ("REMOVED FOR SECURITY REASONS"&currency=USD&integration-date=2021-09-17&components=buttons,messages&vault=false&commit=false&intent=capture&buyer-country=US&disable-funding=card&enable-funding=venmo,paylater:2:75430)\n    at"REMOVED FOR SECURITY REASONS"&currency=USD&integration-date=2021-09-17&components=buttons,messages&vault=false&commit=false&intent=capture&buyer-country=US&disable-funding=card&enable-funding=venmo,paylater:2:148065",
        "timestamp": "1642722564551",
        "referer": "",
        "sdkCorrelationID": "f78133984108c",
        "sessionID": "uid_ee5001af25_mjm6mzq6mzm",
        "env": "sandbox",
        "buttonSessionID": "uid_7a468107d7_mjm6ndg6ndq",
        "buttonCorrelationID": "cb34c4ff1615b",
        "time": "1642722564551",
        "user_id": "uid_7a468107d7_mjm6ndg6ndq",
        "token": null

    I’m trying to setup my store can someone assist please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Mirko P.


    Hi @whojr01,

    Thanks for sharing this with us. Let’s see if there is an error on the WooCommerce Logs. Kindly provide us the following:

    • System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
    • Fatal Error Log: Share a copy of any fatal error log found under WooCommerce > Status > Logs (if available).

    Once we have that, we’ll be able to advise you further about this.

    Thread Starter whojr01


    Hi Mirko,

    Here is the information you requested:

    Woocommerce System Status:

    ### WordPress Environment ###
    WordPress address (URL):
    Site address (URL):
    WC Version: 6.1.1
    REST API Version: ✔ 6.1.1
    WC Blocks Version: ✔ 6.5.2
    Action Scheduler Version: ✔ 3.4.0
    WC Admin Version: ✔ 3.0.3
    Log Directory Writable: ✔
    WP Version: 5.8.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_US
    External object cache: –
    ### Server Environment ###
    Server Info: Apache/2.4.51 (Win64) OpenSSL/1.1.1l
    PHP Version: 7.4.25
    PHP Post Max Size: 64 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.70.0
    SUHOSIN Installed: –
    MySQL Version: 5.6.32
    Max Upload Size: 64 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    ### Database ###
    WC Database Version: 6.1.1
    WC Database Prefix: XXXX
    Total Database Size: 13.09MB
    Database Data Size: 11.44MB
    Database Index Size: 1.65MB
    zqwp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    zqwp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    zqwp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    zqwp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    zqwp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_actionscheduler_actions: Data: 0.05MB + Index: 0.13MB + Engine InnoDB
    zqwp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    zqwp_cartflows_ca_cart_abandonment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    zqwp_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    zqwp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_options: Data: 8.03MB + Index: 0.06MB + Engine InnoDB
    zqwp_postmeta: Data: 2.25MB + Index: 0.17MB + Engine InnoDB
    zqwp_posts: Data: 0.17MB + Index: 0.06MB + Engine InnoDB
    zqwp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    zqwp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    zqwp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    zqwp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    zqwp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    zqwp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    zqwp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    zqwp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    zqwp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    zqwp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ### Post Type Counts ###
    attachment: 80
    cartflows_flow: 3
    cartflows_step: 8
    custom_css: 7
    customize_changeset: 10
    elementor_library: 2
    mycpt: 3
    nav_menu_item: 15
    page: 11
    post: 3
    product: 12
    revision: 14
    ### Security ###
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ❌Error messages should not be shown to visitors.
    ### Active Plugins (9) ###
    Starter Templates: by Brainstorm Force – 3.0.25
    CartFlows: by CartFlows Inc – 1.8.0
    Elementor: by – 3.5.3
    My Custom Post Type: by Whojr – 1.0.0
    SVG Support: by Benbodhi – 2.3.21
    Ultimate Addons for Gutenberg: by Brainstorm Force – 1.25.2
    WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.13
    WooCommerce PayPal Payments: by WooCommerce – 1.6.4
    WooCommerce: by Automattic – 6.1.1
    ### Inactive Plugins (2) ###
    Akismet Anti-Spam: by Automattic – 4.2.1
    Hello Dolly: by Matt Mullenweg – 1.7.2
    ### Settings ###
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    Connected to –
    ### WC Pages ###
    Shop base: #401 - /?page_id=401
    Cart: #97 - /?page_id=97
    Checkout: #98 - /?page_id=98
    My account: #99 - /?page_id=99
    Terms and conditions: ❌ Page not set
    ### Theme ###
    Name: myunique-child-theme
    Version: 1.0.0
    Author URL: 
    Child Theme: ✔
    Parent Theme Name: Astra
    Parent Theme Version: 3.7.6
    Parent Theme Author URL:
    WooCommerce Support: ✔
    ### Templates ###
    Overrides: –
    ### WooCommerce PayPal Payments ###
    Onboarded: ✔
    Shop country code: US
    WooCommerce currency supported: ✔
    PayPal card processing available in country: ✔
    Pay Later messaging available in country: ✔
    Webhook status: –
    Vault enabled: ✔
    Logging enabled: ✔
    Reference Transactions: ✔
    Used PayPal Checkout plugin: –
    ### Action Scheduler ###
    Complete: 96
    Oldest: 2022-01-07 01:20:12 +0000
    Newest: 2022-01-21 00:25:01 +0000
    ### Status report information ###
    Generated at: 2022-01-21 01:48:56 +00:00

    Error Logs:
    No fatal error logs however some interesting entries

    2022-01-21T00:02:42+00:00 DEBUG POST
    Request Body: {"description":"Checking if reference transactions are enabled","payer":{"payment_method":"PAYPAL"},"plan":{"type":"MERCHANT_INITIATED_BILLING","merchant_preferences":{"return_url":"https:\/\/\/return","cancel_url":"https:\/\/\/cancel","skip_shipping_address":true}}}
    Response Debug ID: 7941c20481f44
    Response: Array
        [code] => 201
        [message] => Created
    2022-01-20T23:48:26+00:00 DEBUG POST
    Request Body: {"url":"https:\/\/\/myunique\/index.php?rest_route=\/paypal\/v1\/incoming","event_types":[{"name":"CHECKOUT.ORDER.APPROVED"},{"name":"CHECKOUT.ORDER.COMPLETED"},{"name":"PAYMENT.CAPTURE.REFUNDED"},{"name":"PAYMENT.CAPTURE.REVERSED"},{"name":"PAYMENT.ORDER.CANCELLED"},{"name":"PAYMENT.CAPTURE.DENIED"},{"name":"PAYMENT.CAPTURE.COMPLETED"}]}
    Response: Array
        [code] => 404
        [message] => Not Found
    Response Body: <!DOCTYPE html>
            <meta name="robots" content="noindex,nofollow" />
                /* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: */
                html { background: #eee; padding: 10px }
                img { border: 0; }
                #sf-resetcontent { width:970px; margin:0 auto; }
                                body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
                    .container { margin: 30px; max-width: 600px; }
                    h1 { color: #dc3545; font-size: 24px; }
                            <div class="container">
                        <h1>Sorry, the page you are looking for could not be found.</h1>
    2022-01-20T23:48:26+00:00 ERROR Failed to subscribe webhooks: [Error] Unknown error while connecting to PayPal. Status code: 0.
    2022-01-20T23:48:28+00:00 DEBUG POST
    Response Debug ID: d59efaf73bbf4
    Response: Array
        [code] => 200
        [message] => OK
    2022-01-20T23:48:28+00:00 DEBUG POST
    Request Body: {"partner_config_override":{"partner_logo_url":"https:\/\/\/images\/woocommerce_logo.png","return_url":"https:\/\/\/myunique\/wp-admin\/admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway","return_url_description":"Return to your shop.","show_add_credit_card":true},"products":["PPCP"],"legal_consents":[{"type":"SHARE_DATA_CONSENT","granted":true}],"operations":[{"operation":"API_INTEGRATION","api_integration_preference":{"rest_api_integration":{"integration_method":"PAYPAL","integration_type":"FIRST_PARTY","first_party_details":{"features":["PAYMENT","FUTURE_PAYMENT","REFUND","ADVANCED_TRANSACTIONS_SEARCH","VAULT"],"seller_nonce":"a1233wtergfsdt4365tzrshgfbaewa36AGa1233wtergfsdt4365tzrshgfbaewa36AG"}}}}]}
    Response Debug ID: a9d18b386cf7e
    Response: Array
        [code] => 201
        [message] => Created

    Thanks for looking into this!


    Thread Starter whojr01


    Hi Mirko,

    My response is currently:

    This post has been held for moderation by our automated system and will be manually reviewed by a moderator.

    So until they review it’s on hold. 🙁



    Plugin Support Juan G. woo-hc


    Hi Bill,

    Sorry for the late reply, and thank you for sending the System Status.

    Since this is related to PayPal Payments plugin, please contact us at > My Account > Support. You may need to create an account before you can access that page.
    Please include a link to this forum thread to keep track of what’s already been done.
    We will be able to help you further there.

    I will leave this thread open for a bit in case you want to share the solution you get with everybody.


    Thread Starter whojr01


    Hi Juan,

    Yes, I will open a ticket immediately as well as share the solution once resolved.

    Thank you!


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce Paypal Button Crashes’ is closed to new replies.