Update:
If you are changing domain name make sure you change your OAuth Return URL in your SqaureUp Account.
Login into your account with SqaureUp > Apps > My Apps upper right corner > Click on the OAuth.
Wade Morris
Super excited to use this app - Ive hit one little snag that I cant seem to make sense of.
I keep getting red text that says (Access Token needed) - I go through the steps in OAuth, I get a page that says something to the effect of "Token Added, please close this page" but then nothing changes.
Help?
Thanks!
Did you try refreshing your browser?
Sometimes that message doesn't disappear right away, but refreshing your Admin Payment Modules page will see the message disappear, and things will be ready to go.
If it doesn't go, then the OAuth Redirect URL set in your Square account might not be correct.
In earlier testing, there were times when you had to click on the update button or hit enter to see the result.
A little help with colors.
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
I have installed square payments module.
In the checkout process step2 even though i entered working credit card details it was showing the error message like
" 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"
Due to this i was not able move forward for the payment.
Even I enabled default theme, still same error.
I even tried disabling all other payment module(Paypal and CEOn manual card) still same error.
There is JS conflict browser console.
We haven't done any changes to default checkout flow.
Please see the attached screenshot.![]()
.
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.
Was this ever answered?
I've uploaded all the files to the right locations on my server, created an app in my Square account, set the redirect URL to my domain, but I still have the red warning "(Access Token Needed)" in my Zen Cart Admin / Modules / Payment.
When I click on the "Click here to login and Authorize your account" button, I'm taken to the Square site where I log in. Then the page refreshes and I'm at my domain.
When I try to edit the module, there is nothing in the Location dropdown. How do I get something to appear here?
No matter how often I refresh my Admin page, the warning never goes away, and Square isn't one of the options listed for checkout.
Please help!
J.M. Snyder
Here's how it works:
- You put the correct URL into the OAuth setting in your Square account.
- In your store Admin, you fill in your account credentials (App ID and App Secret, especially)
- In your store Admin you see the Token button for Authorizing your account, and click it
- This takes you to the Square website where you approve the issuing of a token (it may ask you to login to Square if you weren't already)
- In the background it sends a small message to the OAuth URL
- If the incoming message to the OAuth URL is valid (and if the URL is correct, and not blocked by any .htaccess redirects or SEO-URL intercepts), then the issued token will be saved to your store and the module activated properly.
- Upon (manual) reload or re-visit of the Payment Modules page in your Admin, the Token button and error message will disappear from the Square module, and the module will show up on the storefront side, ready to take payments. Also, clicking the Edit button on the Square module will now show a list of Locations in the Locations Dropdown.
What can go wrong, thus preventing tokens from being issued properly?
- incompatible PHP version (You didn't mention your PHP version)
- files in wrong directories, or files missed from upload
- wrong URL entered into Square OAuth screen
- .htaccess URL rewrites blocking access to the square-handler URL
- plugins interfering with normal operation, including URL-rewriters, or so-called "SEO URLs"
Also, you didn't mention your Zen Cart version.
.
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.
Okay, I figured it out :)
For those who may encounter the same problem, make sure your Redirect URL includes /square_handler.php. This information is NOT included in the instructions on the Square website, which were the ones I was following (it IS in the Zen Cart instructions).