• Resolved seigeki

    (@seigeki)


    Hola buenas he detectado que el plugin en su ultima versión me está haciendo conflicto con los pagos en Paypal.

    Cuando tengo el plugin activo y los clientes pulsan en botón de pagar con Paypal genera un error Unexpected token ‘<‘, ” – y cuando desactivo el plugin deja de dar este fallo. ¿podéis ayudarme?

    //

    I’ve noticed that the plugin in its latest version is causing a conflict with PayPal payments.

    When the plugin is active and customers click the PayPal payment button, it triggers an error:
    “Unexpected token ‘<‘, “ — and when I deactivate the plugin, the error disappears.
    Could you help me with this?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sanjeev Aryal

    (@sanzeeb3)

    @seigeki – thanks for reaching out! Can you please share the full error? is it when clicking PayPal button in checkout?

    Thread Starter seigeki

    (@seigeki)

    Hello,

    When I click the PayPal button, the PayPal window opens but then closes automatically after a few seconds. At the top of the screen, a red message appears saying:
    “Something went wrong. Please try again or choose another payment method.”

    In the browser console, the following error is shown:

    button.js:203 SyntaxError: Unexpected token '<', "			<script>
    "... is not valid JSON
    (anonymous) @ button.js:203

    buttons?style.label=…ue&vault=false:1674 create_order_error
    Object
    w @ buttons?style.label=…ue&vault=false:1674
    buttons?style.label=…ue&vault=false:1674 click_initiate_payment_reject
    Object
    w @ buttons?style.label=…ue&vault=false:1674
    buttons?style.label=…ue&vault=false:1674 unhandled_error
    Object
    w @ buttons?style.label=…ue&vault=false:1674

    Uncaught Error: Unexpected token '<', " <script>
    "... is not valid JSON
    at eo.error (js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:76799)
    at Object.<anonymous> (js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:85184)
    at JSON.parse (<anonymous>)
    at o (js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:85043)
    at ho (js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:85196)
    at Oo.u.on (js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:89783)
    at Oo (js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:89903)
    at js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:96225
    at n.try (js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:17278)
    at js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:96022Understand this error
    CheckoutActionHandler.js:165 Error: Unexpected token '<', " <script>
    "... is not valid JSON
    at eo.error (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:76799)
    at Object.<anonymous> (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:85184)
    at JSON.parse (<anonymous>)
    at o (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:85043)
    at ho (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:85196)
    at Oo.u.on (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:89783)
    at Oo (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:89903)
    at https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:96225
    at n.try (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:17278)
    at https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:96022

    Error: Unexpected token '<', " <script>
    "... is not valid JSON
    at eo.error (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:76799)
    at Array.<anonymous> (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:85184)
    at JSON.parse (<anonymous>)
    at o (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:85043)
    at ho (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:85196)
    at Oo.u.on (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:89783)
    at Oo (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:89903)
    at https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:96225
    at n.try (https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:17278)
    at https://www.paypal.com/sdk/js?client-id=AZSsyI1wINu2CvbKhFhYXo1iHbcopnpPvHVaRZ8quHs10P5WVrXJxmvYpLYTChiMivDkKVPIs-qGPieN&currency=EUR&integration-date=2025-05-14&components=buttons,funding-eligibility&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:3:96022
    onError @ CheckoutActionHandler.js:165Understand this error
    post-8371.css:1


    Failed to load resource: the server responded with a status of 404 ()

    This issue only happens when the plugin is active. If I deactivate it, the PayPal payment works as expected and the error disappears.

    Thank you very much for the help 🙂

    Thread Starter seigeki

    (@seigeki)

    Hi!
    I just wanted to check if you’ve had a chance to look into the PayPal error I mentioned earlier. Any updates on this?

    Thanks, 🙂

    Plugin Author Sanjeev Aryal

    (@sanzeeb3)

    Hi @seigeki – Birthday For WooCommerce version 1.5.9 is now released which should fix this problem. Please update the plugin and let me know how it goes!

    I apologize for the delay in the update.

    Thread Starter seigeki

    (@seigeki)

    Don’t worry, I’ve updated and checked the plugin and everything seems to be working great now.

    Thank you very much for your time and, above all, your help. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem with Paypal plugin’ is closed to new replies.