Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
MrPix
Hi @RocketSites and @Congerman,
I host a small site for my friend here in the UK and we are getting increasing demand for SCA compliance from overseas in particular.
I downloaded the zip file and uploaded/replaced the 2 files from within the site.
I created a product and tried to complete a purchase but the transaction gets stuck on step 2 and clicking on Continue (after entering real debit card data) seems to do nothing.
Can you please help me resolve this, I'm pretty sure it's probably something my end or something I have missed but really have no idea as I do not have any access to the square account as it is not mine.
For the record, I did restore the original 2 files and went through the process again and the Continue button (Step 2 > 3) worked OK (but obviously no SCA).
I am using v1.5.7 of Zencart, don't know if this has any bearing as I know v1.5.7c is available?
Thank you for your time.
Hi,
This sounds like a JS error, could be as simple as a cache issue. Can you provide your website URL and confirm that I can create a customer account to test please?
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
MrPix
Hi @RocketSites and @Congerman,
I host a small site for my friend here in the UK and we are getting increasing demand for SCA compliance from overseas in particular.
I downloaded the zip file and uploaded/replaced the 2 files from within the site.
I created a product and tried to complete a purchase but the transaction gets stuck on step 2 and clicking on Continue (after entering real debit card data) seems to do nothing.
Can you please help me resolve this, I'm pretty sure it's probably something my end or something I have missed but really have no idea as I do not have any access to the square account as it is not mine.
For the record, I did restore the original 2 files and went through the process again and the Continue button (Step 2 > 3) worked OK (but obviously no SCA).
I am using v1.5.7 of Zencart, don't know if this has any bearing as I know v1.5.7c is available?
Thank you for your time.
That could be part of the problem; there are significant updates to the core from v1.5.7 to v1.5.7c.
If you go to https://github.com/zencart/zencart/releases and click on the 'Assets' associated with the v1.5.7b and v1.5.7c releases, you'll find zip-files that contain only the changed files (no database changes required) to make the upgrade easier. You'll need to do two updates going from v1.5.7 to v1.5.7c, first from v1.5.7 to v1.5.7b then from v1.5.7b to 1.5.7c.
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
If you find the input fields for credit card numbers are flat with no text box to type into, this typically means you're missing the jscript_square.php file as described earlier in the Installation Instructions.
Or you've got a firewall or browser plugin blocking access to Square's javascript code.
Or you've got a plugin having jQuery conflicts.
ZC 1.5.7.c
One Page Checkout
Fluorspar Template
IH5
Backup MySQL
Yep, that flat CC field with no input field is exactly what I have.
Quote:
For One-Page Checkout to work, you must COPY the jscript_square.php file from /includes/modules/pages/checkout_payment/ into the /includes/modules/pages/checkout_one/ folder.
Done and verified
Quote:
If you had placed extra copies of the jscript_square.php file in other checkout flow locations, re-copy that again using the updated file. (common example would be for the One-Page-Checkout addon, described later in this document)
Done and verified.
I have not seen any console errors nor any php errors. I have validated HTTPS was well. What am I missing?
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
g2ktcf
ZC 1.5.7.c
One Page Checkout
Fluorspar Template
IH5
Backup MySQL
Yep, that flat CC field with no input field is exactly what I have.
Done and verified
Done and verified.
I have not seen any console errors nor any php errors. I have validated HTTPS was well. What am I missing?
What's your storefront URL please? Feel free to PM if preferred.
Re: Square Payment Module for Zen Cart [Support Thread]
I am testing this one an older store so do not let the URL fool you. radiant-holidays.com/Test. This is not the live store.
Re: Square Payment Module for Zen Cart [Support Thread]
Hello,
sometimes I get an error mail when a customer wants to pay by Square:
Error Dump: stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[code] => VALUE_EMPTY
[detail] => Field must not be blank
[field] => source_id
[category] => INVALID_REQUEST_ERROR
)
[1] => stdClass Object
(
[code] => VALUE_EMPTY
[detail] => Field must not be blank
[field] => idempotency_key
[category] => INVALID_REQUEST_ERROR
)
[2] => stdClass Object
(
[code] => MISSING_REQUIRED_PARAMETER
[detail] => Field must be set
[field] => amount_money
[category] => INVALID_REQUEST_ERROR
)
)
)
I can not find out what the reason is. Minutes before and after people paid successfully.
Zen Cart version 1.5.5f
Square module: 1.5
php-version 7.3.28
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
g2ktcf
I am testing this one an older store so do not let the URL fool you. radiant-holidays.com/Test. This is not the live store.
Thanks.
Looks like you're using the standard Square module, and it appears that the issue only occurs after the order total changes (e.g. after changing the shipping method) - correct?
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
todoonada
Hello,
sometimes I get an error mail when a customer wants to pay by Square:
Error Dump: stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[code] => VALUE_EMPTY
[detail] => Field must not be blank
[field] => source_id
[category] => INVALID_REQUEST_ERROR
)
[1] => stdClass Object
(
[code] => VALUE_EMPTY
[detail] => Field must not be blank
[field] => idempotency_key
[category] => INVALID_REQUEST_ERROR
)
[2] => stdClass Object
(
[code] => MISSING_REQUIRED_PARAMETER
[detail] => Field must be set
[field] => amount_money
[category] => INVALID_REQUEST_ERROR
)
)
)
I can not find out what the reason is. Minutes before and after people paid successfully.
Zen Cart version 1.5.5f
Square module: 1.5
php-version 7.3.28
Are these definitely triggered by payment attempts? Looking at the core code, amount_money is only used during refunds.
Re: Square Payment Module for Zen Cart [Support Thread]
I do not remember ever seeing the fields there. Now that I think about it, I do not know if I ever created a cart from scratch after installing the module. I will go back and test that. Be advised that this site is running in a subdirectory of the .com url and we have seen some issues with that from other plugins.
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
RocketSites
Are these definitely triggered by payment attempts? Looking at the core code, amount_money is only used during refunds.
Yes, they are triggered by payment attempts. I followed the customer on "Who's online" and saw the on the payment site. Then they went to checkout_confirmation and I received the mail the error. Then customer went to the payment site again and same error happens.