I've submitted a change-request to the Zen Cart GitHub, see this commit for details of the proposed change.
Cindy,
I changed:
1. /includes/modules/pages/checkout_payment/jscript_square.phpCode:
Line 13: if ($payment_modules->in_special_checkout()) { replaced: if ($payment_modules->in_special_checkout() || empty($square) || !$square->enabled) {
2. /includes/modules/pages/checkout_one/jscript_square.php
The download worked perfectly!!!
Mark,
Mark
Hare Do
Thanks for the report, Mark. Turns out that the issue was raised when/if the Square payment method was zone-restricted as well; causing the jQuery error if the payment method was not enabled for the zone associated with the current billing address.
@dbltoe ... do you have any idea why the billing country is blank? It's obtained by lookup from the customer's default address, unless they change that address during checkout. The only reason I can think of why it would be blank is if they somehow were allowed to select a country which is not supported by your store, or if you've changed the "country name" or ISO codes in your Admin to something other than the default.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
(Access Token needed) Still shows in red.
Everything is set correctly.
Everything (files) in correct location.
Yes I refreshed admin page 1 million times (not a million, but close)
Gots me baffled.
All latest versions installed.
Help, will give monatary compensation if this gets figured out.
It is on a Dreamhost server.
It's generally that you need to take special care that all of the access token is removed and the entire access token is entered. The length of the token often makes you think you got it all when you didn't.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
EDIT: Problem resolved
ZC 156 builtin Square setup
install on sandbox server with demo data
drop tables
import db from backup of live db
run zc_install
RED: Access Token needed error
Seems that the setup is asking for input from our square account for which no field exists or I am not comprehending the field labels in setup.
Square setup.
Populate the fields as necessary.
There is NO Access token field in the zc square setup but there is one in our square account
Application ID copy/pasted from our Square account
Application Secret (OAUTH) copy/pasted from our square account
EDIT: It helps if you read all the setup instructions. I missed the line where zc provided a link which needed to be pasted into our Square Account
Problem resolved.
Last edited by RixStix; 8 Jan 2019 at 12:36 AM. Reason: added clarification
Rick
RixStix (dot) com
aka: ChainWeavers (dot) com
a new problem for me.
I get this error when testing
We could not initiate your transaction because of a problem with the card data you entered. Please correct the card data, or report this error to the Store Owner: SQ-NONCE-FAILURE
All the credit card info is correct (used 3 different cards
SQ-NONCE-FAILURE happens when the javascript on the page is unable to properly obtain a payment token from Square. This is almost always because there are javascript errors on your page. Javascript errors are common when mixing multiple plugins or adding extra things to the template. You'll need to investigate the errors in your template.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks