Re: Square Payment Module for Zen Cart [Support Thread]
Does anyone know if zen cart passes the details of each sale (items purchased) and sales tax to square? Looking for order details when viewing the record, and looking for the ability to report on sales tax. Reporting on items purchased would also be awesome... I know there is amazing reporting using the square point of sale system, just not sure what gets passed when integrating it w/ zen cart. Thanks in advance!
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
BRDS
I am unable to make this module work and am confronted with the SQ-NONCE-FAILURE error at every turn.
I am running zencart 1.5.6c on php 7.3
I have check and tried all the previous advise in this thread and the Square set up common problems, but still no luck. All files are in the right place, the module is installed and activated with a valid token and date. I also have no js errors... I have even removed my custom js code and just tried with plain jquery (deferred and not).
One thing I have noticed is that in the console the following error is logged...
0: Unable to get property 'SavePersonalAndPaymentData' of undefined or null reference - Autoformfill_ContentScript.js (1,20660)
I am getting a nonce code, I amended the code to log this in the console to ensure one is generated... and even unhid the input field that this is placed in to see it is actually placed in the input field before the submit confinues.... but it just refuses to work.
What else can I try, I have been at this all day, and going crazy :wacko:
I'm pretty sure your javascript error is interfering with the execution of the rest of the script. Whatever conflicts are introduced by other javascript on your site will need to be addressed before it will work properly for you.
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
cindygordon
Does anyone know if zen cart passes the details of each sale (items purchased) and sales tax to square? Looking for order details when viewing the record, and looking for the ability to report on sales tax. Reporting on items purchased would also be awesome... I know there is amazing reporting using the square point of sale system, just not sure what gets passed when integrating it w/ zen cart. Thanks in advance!
Version 0.x of the Square module only transmits the payment portion of the transaction, not the actual line-item details (items, taxes, etc).
As a workaround, you can do that reporting in your store: The Sales Report plugin gives the ability to slice that data in significant detail.
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
dkerfoot
Do I understand correctly that there is no address verification service (AVS) with Square?
Square does AVS with postal/zip code.
Re: Square Payment Module for Zen Cart [Support Thread]
How do I resolve the following PHP Warning with Square?
[04-Feb-2020 13:26:21 UTC] Request URI: /index.php?main_page=checkout_process, IP address: 0000000
#1 square->before_process() called at [/var/www/vhosts/domain/httpdocs/includes/classes/payment.php:246]
#2 payment->before_process() called at [/var/www/vhosts/domain/httpdocs/includes/modules/checkout_process.php:92]
#3 require(/var/www/vhosts/domain/httpdocs/includes/modules/checkout_process.php) called at [/var/www/vhosts/domain/httpdocs/includes/modules/pages/checkout_process/header_php.php:14]
#4 require(/var/www/vhosts/domain/httpdocs/includes/modules/pages/checkout_process/header_php.php) called at [/var/www/vhosts/domain/httpdocs/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/domain/httpdocs/includes/modules/payment/square.php on line 355.
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
ianhg
How do I resolve the following PHP Warning with Square?
[04-Feb-2020 13:26:21 UTC] Request URI: /index.php?main_page=checkout_process, IP address: 0000000
#1 square->before_process() called at [/var/www/vhosts/domain/httpdocs/includes/classes/payment.php:246]
#2 payment->before_process() called at [/var/www/vhosts/domain/httpdocs/includes/modules/checkout_process.php:92]
#3 require(/var/www/vhosts/domain/httpdocs/includes/modules/checkout_process.php) called at [/var/www/vhosts/domain/httpdocs/includes/modules/pages/checkout_process/header_php.php:14]
#4 require(/var/www/vhosts/domain/httpdocs/includes/modules/pages/checkout_process/header_php.php) called at [/var/www/vhosts/domain/httpdocs/index.php:36]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/domain/httpdocs/includes/modules/payment/square.php on line 355.
For this specific instance, you can change line 355 of the square.php module from
Code:
if (count($errors_object)) {
to
Code:
if (!empty($errors_object)) {
Re: Square Payment Module for Zen Cart [Support Thread]
BETA TESTING INVITATION
I've recently worked on an update to the Square module, aiming to call it v1.0, to integrate their 2020-01-22 SDK code, which reduces some of the complexity in the module, embraces some of Square's newer API code, and prepares the way to integrate even more of their capabilities in the future.
I've done a bunch of testing and it seems to work fine, but I'd like to get some feedback from people running live stores. Especially non-US stores (although US stores are needed too).
I've attached the zip of the v1.00-beta.
(beta zip removed, because v1.0 has now been released, and has includes several newer updates since the 1.00-beta was posted)
Upgrade instructions:
- Delete the server's /includes/classes/vendors/square directory and the /includes/modules/payment/square_support directory (You will replace these in a moment, but this deletes older obsolete files first).
- Then upload all the files from the files_to_upload directory, putting them into the same directory on the server as you find them in this zip.
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
DrByte
For this specific instance, you can change line 355 of the square.php module from
Code:
if (count($errors_object)) {
to
Code:
if (!empty($errors_object)) {
Thank you for a speedy response
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
DrByte
Square does AVS with postal/zip code.
Thanks, but I am confused. When I was using the FirstData/Linkpoint module, I would see the YYxM code results. I don't see any results at all with Square transactions. Does it do it in the background and simply reject the transaction if it isn't a perfect match?
Thanks,
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
dkerfoot
When I was using the FirstData/Linkpoint module, I would see the YYxM code results. I don't see any results at all with Square transactions. Does it do it in the background and simply reject the transaction if it isn't a perfect match?
At this time the module doesn't report any AVS response details. But, more importantly, if the customer's bank chooses to reject the transaction (for any reason, including avs) then Square will tell your store that the payment was rejected. It's the cardholder's bank that does the determination of AVS adequacy, since they're the ones assuming the risk. Square (or any card processor) is just the middle-man.