Title: SyntaxError: JSON Parse error: Unexpected identifier &#8220;Sorry&#8221;
Last modified: January 20, 2024

---

# SyntaxError: JSON Parse error: Unexpected identifier “Sorry”

 *  Resolved [Milan](https://wordpress.org/support/users/ihelprs/)
 * (@ihelprs)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error-unexpected-identifier-sorry/)
 * When customer try to chekout, get error:
   SyntaxError: JSON Parse error: Unexpected
   identifier “Sorry”Plugin is connected with Stripe and when make test, all is 
   working.

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

 *  Thread Starter [Milan](https://wordpress.org/support/users/ihelprs/)
 * (@ihelprs)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error-unexpected-identifier-sorry/#post-17359751)
 * just to add to the post above. It throws that error on Safari and Google Chrome.
   On Firefox developer edition, payment works normally.
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error-unexpected-identifier-sorry/#post-17359772)
 * Hi
 * That error message is likely occurring because you have a plugin that’s echoing
   text during a payment request.
 * If you share a product page URL we can do a more in-depth review.
 * Please provide more details on how to recreate the error.
 * Kind Regards
 *  Thread Starter [Milan](https://wordpress.org/support/users/ihelprs/)
 * (@ihelprs)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error-unexpected-identifier-sorry/#post-17360016)
 * Site is:
 * [https://graphicsmarketplace.net/](https://graphicsmarketplace.net/)
 * You can chose any product, put in cart and try to pay with credit card. You will
   get error like this in Safari:
   [](https://ibb.co/Gxt7tw6)
 * [https://ibb.co/Gxt7tw6](https://ibb.co/Gxt7tw6)[](https://ibb.co/Gxt7tw6)
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error-unexpected-identifier-sorry/#post-17360190)
 * Hi [@ihelprs](https://wordpress.org/support/users/ihelprs/)
 * Can you set the plugin to test mode? That will make testing easier.
 * I see the following Javascript error on your checkout page which you will want
   to resolve:
 *     ```wp-block-code
       Uncaught TypeError: Cannot read properties of null (reading 'setAttribute')
           at checkout/:2049:17
       ```
   
 * Kind Regards
 *  Thread Starter [Milan](https://wordpress.org/support/users/ihelprs/)
 * (@ihelprs)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error-unexpected-identifier-sorry/#post-17360413)
 * Now is in TEST mode. You can try and test is.
    -  This reply was modified 2 years, 4 months ago by [Milan](https://wordpress.org/support/users/ihelprs/).
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error-unexpected-identifier-sorry/#post-17360512)
 * Hi [@ihelprs](https://wordpress.org/support/users/ihelprs/)
 * This error is not being caused by the Stripe plugin. If you click F12 using chrome
   and look at your network tab you will see that the response from your server 
   during the WooCommerce checkout process is:
 *     ```wp-block-code
       Sorry, you do not have access to edit post
       ```
   
 * You seem to have some plugin that’s restricting access to a part of the checkout
   process.
 * Kind Regards
 *  Thread Starter [Milan](https://wordpress.org/support/users/ihelprs/)
 * (@ihelprs)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error-unexpected-identifier-sorry/#post-17360934)
 * Hi,
 * Thank you for your help. For everyone else, let’s write a solution:
 * 
   The problem was the **Header Footer Custom Html** plugin by **Enweby**. When
   it was turned off, the payment worked normally.
 * Thanks again!
   You can close thread.

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

The topic ‘SyntaxError: JSON Parse error: Unexpected identifier “Sorry”’ is closed
to new replies.

 * ![](https://ps.w.org/woo-stripe-payment/assets/icon-256x256.png?rev=2611337)
 * [Payment Plugins for Stripe WooCommerce](https://wordpress.org/plugins/woo-stripe-payment/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-stripe-payment/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-stripe-payment/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-stripe-payment/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-stripe-payment/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-stripe-payment/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Milan](https://wordpress.org/support/users/ihelprs/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/syntaxerror-json-parse-error-unexpected-identifier-sorry/#post-17360934)
 * Status: resolved