Post by jhinze » Thu Nov 09, 2017 1:48 am

Opencart 3.0.2 with built in SQUAREUP extension

During checkout when hitting "Confirm Order" button I get an error before the final confirmation

"SyntaxError: Unexpected token < in JSON at position 0

The plugin records the transaction, square has record of the transaction. No error is logged including the one displayed.

Any clues?

Newbie

Posts

Joined
Thu Nov 09, 2017 1:40 am


Post by jhinze » Thu Nov 09, 2017 1:00 pm

For anyone encountering this... it ends up being an email issue.

My host doesn't permit sending email "from" a different account (spoofing the email addy). Once that was adjusted it all works well.

I'm concerned that I had to run fiddler to catch the error, OpenCart didn't log it anywhere despite the fact I have error logging turned on.

Newbie

Posts

Joined
Thu Nov 09, 2017 1:40 am

Who is online

Users browsing this forum: No registered users and 8 guests