Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Do you have a link to your site?

    Thread Starter upendraawasthi

    (@upendraawasthi)

    yes
    https://www.spaarkyzz.com
    all other payment method are working but when i am selecting atom payment gateway its giving me “SyntaxError: Unexpected token <“

    Please help me

    I have installed old version and new version both are giving me same error

    Thread Starter upendraawasthi

    (@upendraawasthi)

    website is in under construction mode

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    At least you know where the error is coming from. Are you using a plugin directly from Atom? If so, I would contact them and let them know about the error.

    Thread Starter upendraawasthi

    (@upendraawasthi)

    Yes they have given me plugin(atom payment gateway)
    I already contacted to them and they are saying this error is not from our side our plugin is working fine.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Atom plugin will be returning a non-Json response. It needs to change the way it processing the payment and ensure it doesn’t just spit out HTML/errors during payment.

    Thread Starter upendraawasthi

    (@upendraawasthi)

    Please give me any update on this.
    I am totally frustated

    Plugin Contributor Mike Jolley

    (@mikejolley)

    I don’t author your ‘atom’ gateway so I cannot really..

    Thread Starter upendraawasthi

    (@upendraawasthi)

    for errors i already put

    define('WP_DEBUG', false);
    error_reporting(0);
    @ini_set('display_errors', 0);

    from last 6 months when i am testing the website atom payment gateway was working fine but from last 10 days its given me error .

    can you please tell me how i can fix it.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    The above only hides errors. If the gateway outputs HTML you cannot stop it with the above method. The gateway needs an update.

    Thread Starter upendraawasthi

    (@upendraawasthi)

    But why its working fine earlier.
    earlier also the payment gateway outputs HTML .

    I tried with older version of woocommerce also and getting the same erro and after update also same error .If its from atom side then why it was working from last 6 months.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Gateways are supposed to return an array, not output HTML. WC 2.4 is more strict about this and should have been tested by the authors.

    Thread Starter upendraawasthi

    (@upendraawasthi)

    Thanks provider has solved the problem

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘getting this "SyntaxError: Unexpected token’ is closed to new replies.