Page 1 of 1

SquareUp extension issue?

Posted: Thu Nov 09, 2017 1:48 am
by jhinze
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?

Re: SquareUp extension issue?

Posted: Thu Nov 09, 2017 1:00 pm
by jhinze
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.