Square should have logs on their side that will help you troubleshoot this.
Square should have logs on their side that will help you troubleshoot this.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Thanks Scott. Already checked the API logs and the only 401 errors were ObtainToken and these were from last week when I was setting the module up originally.
Everything seems to be working perfectly if it wasn't for the user reports. I put the first few down to user error but my gut now tells me there is an issue.
Assume I should still be using API version 2022-02-16?
brent,
unfortunately i can not debug based on a gut feeling. if you have any error logs, by all means go ahead and post them.
you can change the constant MODULE_PAYMENT_SQ_WEBPAY_LOGGING to Log Always, and see what happens.
the potential for problems could be before ZC sends any data to square, which should hopefully generate an error log. else if the data gets sent to square then you should see it on the API dashboard on the square web site. if you have log always on, you should see that Square log as well in your logs directory.
and yes that is the correct API version to use.
best.
/usr/bin/wget https://YOURSTORE/squareWebPay_handler.php This is the cron cmd to use, right?
There is discussion on this higher up in the thread. The broad outline is covered in the docs now though.
https://docs.zen-cart.com/user/payme..._token_expiry/
thanks!