Title: Problem with Paypal plugin
Last modified: June 19, 2025

---

# Problem with Paypal plugin

 *  Resolved [seigeki](https://wordpress.org/support/users/seigeki/)
 * (@seigeki)
 * [1 year ago](https://wordpress.org/support/topic/problem-with-paypal-plugin/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-paypal-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [1 year ago](https://wordpress.org/support/topic/problem-with-paypal-plugin/#post-18519214)
 * [@seigeki](https://wordpress.org/support/users/seigeki/) – thanks for reaching
   out! Can you please share the full error? is it when clicking PayPal button in
   checkout?
 *  Thread Starter [seigeki](https://wordpress.org/support/users/seigeki/)
 * (@seigeki)
 * [1 year ago](https://wordpress.org/support/topic/problem-with-paypal-plugin/#post-18519322)
 * 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:
 *     ```wp-block-code
       button.js:203 SyntaxError: Unexpected token '<', "			<script>"... is not valid JSON(anonymous)	@	button.js:203buttons?style.label=…ue&vault=false:1674 create_order_error Objectw	@	buttons?style.label=…ue&vault=false:1674buttons?style.label=…ue&vault=false:1674 click_initiate_payment_reject Objectw	@	buttons?style.label=…ue&vault=false:1674buttons?style.label=…ue&vault=false:1674 unhandled_error Objectw	@	buttons?style.label=…ue&vault=false:1674Uncaught 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 errorCheckoutActionHandler.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:96022Error: 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:96022onError @ CheckoutActionHandler.js:165Understand this errorpost-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](https://wordpress.org/support/users/seigeki/)
 * (@seigeki)
 * [10 months ago](https://wordpress.org/support/topic/problem-with-paypal-plugin/#post-18606532)
 * 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](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [10 months ago](https://wordpress.org/support/topic/problem-with-paypal-plugin/#post-18606626)
 * Hi [@seigeki](https://wordpress.org/support/users/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](https://wordpress.org/support/users/seigeki/)
 * (@seigeki)
 * [10 months ago](https://wordpress.org/support/topic/problem-with-paypal-plugin/#post-18606647)
 * 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.

 * ![](https://ps.w.org/birthday/assets/icon-256x256.png?rev=3141458)
 * [Birthday For WooCommerce](https://wordpress.org/plugins/birthday/)
 * [Support Threads](https://wordpress.org/support/plugin/birthday/)
 * [Active Topics](https://wordpress.org/support/plugin/birthday/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/birthday/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/birthday/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [seigeki](https://wordpress.org/support/users/seigeki/)
 * Last activity: [10 months ago](https://wordpress.org/support/topic/problem-with-paypal-plugin/#post-18606647)
 * Status: resolved