• Resolved Milan

    (@ihelprs)


    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

    (@ihelprs)

    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

    (@mrclayton)

    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

    (@ihelprs)

    Site is:

    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

    Plugin Author Clayton R

    (@mrclayton)

    Hi @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:

    Uncaught TypeError: Cannot read properties of null (reading 'setAttribute')
        at checkout/:2049:17

    Kind Regards

    Thread Starter Milan

    (@ihelprs)

    Now is in TEST mode. You can try and test is.

    • This reply was modified 2 years, 4 months ago by Milan.
    Plugin Author Clayton R

    (@mrclayton)

    Hi @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:

    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

    (@ihelprs)

    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.