Zen Cart Logo
Forums / Addon Payment Modules / Square Payment Module for Zen Cart [Support Thread]

Square Payment Module for Zen Cart [Support Thread]

Sticky

Views: 366,702

Results 61 to 80 of 835
3 Nov 2017, 7:07 PM
#61
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Square Payment Module for Zen Cart [Support Thread]

wmorris:

Earmsby,

  1. Login to your Squareup account.
  2. On your left click on apps.
  3. You should see "My Apps"
  4. There you should able to find a button "Create New Application".Unfortunately, if you already have an app, there is no button for creating a new one. Hence the direction to log in to https://connect.squareup.com/apps after logging in to square
7 Nov 2017, 10:55 PM
#62
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

Has anyone tried to get an existing Square account qualified for the promotional 2.7% rate?
I have received 2 replies offering technical support and nothing related to account setup.
I have also received one Phishing email pretending to be Square.

All since transmitting a single email to ----------

7 Nov 2017, 11:17 PM
#63
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Square Payment Module for Zen Cart [Support Thread]

The correct email address is: partnersupport@squareup.com

My contact at Square has confirmed that there's been a lot of response to this offer ... so I know it's functional.

7 Nov 2017, 11:23 PM
#64
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

Thanks DrByte

I copy/pasted the address in the original email. Sorry, in the post I was typing from memory.

I'll try again.

8 Nov 2017, 12:50 PM
#65
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

DrByte:

The correct email address is: partnersupport@squareup.com

My contact at Square has confirmed that there's been a lot of response to this offer ... so I know it's functional.

I contacted them a few day's ago with no response. I sent another email earlier today.

8 Nov 2017, 3:00 PM
#66
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Square Payment Module for Zen Cart [Support Thread]

Maynards:

I contacted them a few day's ago with no response. I sent another email earlier today.

I had to do two emails, but I'm in so it is working for existing accounts.
Thanks DrByte

9 Nov 2017, 12:09 AM
#67
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

Apparently Square only works for customer orders paid for and shipped in the US and Canada. This is what the Square support person is telling me. Does anyone have different information?

9 Nov 2017, 12:31 AM
#68
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

earmsby:

Apparently Square only works for customer orders paid for and shipped in the US and Canada. This is what the Square support person is telling me. Does anyone have different information?

https://squareup.com/help/us/en/article/5085-accepted-cards

Their website indicates different.

9 Nov 2017, 1:38 AM
#69
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

Interesting. The customer service rep told me, "... customers can use international credit cards to make purchases through a Square merchant’s Online Store, but the order must be placed in the U.S. and shipped to a U.S. address."

I was not aware that the ZenCart payment module sends the shipping address with the payment info, but maybe it does? Have others been able to process payments to customers with shipping addresses outside the US?

I did write back to try to clarify where they consider the order to have been "placed" - at my location in the US or at the location where the customer is typing into a browser screen. Seems unclear to me.

14 Nov 2017, 1:37 AM
#70
charmlt avatar

charmlt

New Zenner

Join Date:
Mar 2005
Location:
Earth
Posts:
83
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

Server: Geekhost.ca running Linux 2.6.32-642.6 on HTTP Server: Apache
PHP v5.6.32 and MySQL: 5.5.5-10
Zen Cart v1.5.4

Plugins:
Simple Blue Responsive v1.0
CKEditor v3.7s
Edit Orders v4.1.4
Sitemap XML v 3.6
Google Merchant Center Feeder 1.14.5
Graphical Sales Report v1.11
Sales Report v3.2.0
USPS 2017-09-16
Square Payments Module 0.90

I get: 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.
I tryed turning on and off my working FirstData/Linkpoint/YourPay API.
I've upgraded my PayPal from Standard to Express and tryed it on and off.

I've replaced the Application ID and the Application Secret
I notice that the Location ID is a dropdown in ZC and NOT changeable. It defaults to the "Name" under the Locations tab at connect.squareup.com and not the acual Location ID.

Are any of the above plugins been known for being the problem?

14 Nov 2017, 5:03 AM
#72
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Square Payment Module for Zen Cart [Support Thread]

Guessing it's a javascript error in your payment page.

14 Nov 2017, 1:48 PM
#73
charmlt avatar

charmlt

New Zenner

Join Date:
Mar 2005
Location:
Earth
Posts:
83
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

Zen Cart 1.5.5e - Database Patch Level: 1.5.5
with Simple Blue Responsive v1.0 template and CKEditor plugin and I still get:
"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."

What else could I be doing wrong?

14 Nov 2017, 2:04 PM
#74
charmlt avatar

charmlt

New Zenner

Join Date:
Mar 2005
Location:
Earth
Posts:
83
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

FIXED!
Somewhere in Simple Blue Responsive v1.0 Template
Crap! Now I gotta rebuild a new template :(

14 Nov 2017, 4:51 PM
#75
henrygale avatar

henrygale

New Zenner

Join Date:
Aug 2011
Posts:
2
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

Amature tearing his hair out here.

I'm trying to get this working at https://www.skahfeestudios.com, and it's been throwing SQ-NONCE-FAILURE.

I've switched template back to classic and still getting the error. When I enter credit card information and click submit, console is showing:

ReferenceError: check_form is not defined  index.php:197:19

Clicking through to the line of code brings me to:

function doCollectsCardDataOnsite()
{
   var str = $('form[name="checkout_payment"]').serializeArray();

   zcJS.ajax({
    url: "ajax.php?act=ajaxPayment&method=prepareConfirmation",
    data: str
  }).done(function( response ) {
   $('#checkoutPayment').hide();
   $('#navBreadCrumb').html(response.breadCrumbHtml);
   $('#checkoutPayment').before(response.confirmationHtml);
   $(document).attr('title', response.pageTitle);
 });
}

    $(document).ready(function(){
      $('form[name="checkout_payment"]').submit(function() {
          $('.paymentSubmit').attr('disabled', true);
                  formPassed = check_form();

I'm assuming this is tied to my failed attempts to implement One Page Checkout and Fast Easy Checkout (not at the same time). I guess I didn't revert a file back to its state prior to that failure. Any tips for me on how to track down the problem? Really hoping to get this working without a wipe and rebuild.

Thanks,
Scott

20 Nov 2017, 8:11 PM
#76
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Square Payment Module for Zen Cart [Support Thread]

earmsby:

Apparently Square only works for customer orders paid for and shipped in the US and Canada. This is what the Square support person is telling me. Does anyone have different information?

RixStix:

https://squareup.com/help/us/en/article/5085-accepted-cards

Their website indicates different.

earmsby:

Interesting. The customer service rep told me, "... customers can use international credit cards to make purchases through a Square merchant’s Online Store, but the order must be placed in the U.S. and shipped to a U.S. address."

I was not aware that the ZenCart payment module sends the shipping address with the payment info, but maybe it does? Have others been able to process payments to customers with shipping addresses outside the US?

I did write back to try to clarify where they consider the order to have been "placed" - at my location in the US or at the location where the customer is typing into a browser screen. Seems unclear to me.

@earmsby, I asked Square to clarify this situation. Turns out the answer you were given was not fully correct. It was accurate if you were using the "Square Online Store" (which is a mini store within your Square account, to sell your items .... not your Zen Cart store), but inaccurate for your Zen Cart store since the Zen Cart integration uses Square's "E-commerce API" ... which does indeed accept international credit cards. ie: it'll accept all Visa/MasterCard/Amex/Discover/JCB cards, regardless of country, as long as it passes standard fraud-detection rules.

20 Nov 2017, 8:17 PM
#77
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Square Payment Module for Zen Cart [Support Thread]

HenryGale:

Amature tearing his hair out here.

I'm trying to get this working at www.skahfeestudios.com, and it's been throwing SQ-NONCE-FAILURE.

I've switched template back to classic and still getting the error. When I enter credit card information and click submit, console is showing:

ReferenceError: check_form is not defined index.php:197:19

> 
> Clicking through to the line of code brings me to:
> 
> ```
function doCollectsCardDataOnsite()
{
   var str = $('form[name="checkout_payment"]').serializeArray();

   zcJS.ajax({
    url: "ajax.php?act=ajaxPayment&method=prepareConfirmation",
    data: str
  }).done(function( response ) {
   $('#checkoutPayment').hide();
   $('#navBreadCrumb').html(response.breadCrumbHtml);
   $('#checkoutPayment').before(response.confirmationHtml);
   $(document).attr('title', response.pageTitle);
 });
}

    $(document).ready(function(){
      $('form[name="checkout_payment"]').submit(function() {
          $('.paymentSubmit').attr('disabled', true);
                  formPassed = check_form();

I'm assuming this is tied to my failed attempts to implement One Page Checkout and Fast Easy Checkout (not at the same time). I guess I didn't revert a file back to its state prior to that failure. Any tips for me on how to track down the problem? Really hoping to get this working without a wipe and rebuild.

Thanks,
Scott

I'd investigate all changes you've made to:

  • /includes/modules/payment/checkout_payment -- all files
  • /includes/modules/payment/checkout_confirmation -- all files
  • /includes/modules/payment/checkout (this directory was added by FEC, so should be gone if you removed FEC)
  • /includes/templates/EACH_OF_THE_TEMPLATES/jscript -- all files, make sure only the files still needed are present, and match your ZC version
  • /includes/templates/EACH_OF_THE_TEMPLATES/templates/tpl_checkout_payment_default.php
  • /includes/templates/EACH_OF_THE_TEMPLATES/templates/tpl_checkout_confirmation_default.php

One of the best ways to identify possible culprits is to get 2 directories on your PC: one containing all your server's Zen Cart files, and one containing a fresh uncustomized copy of original Zen Cart files for that version of Zen Cart .... and then run a text-file-compare program to compare and identify all differences between the files, both in-file-alterations, and added/deleted files. Good tools for this are Beyond Compare by Scooter Software, and Araxis Merge, or the free WinMerge (see http://www.zen-cart.com/wiki/index.php/Useful_Tools )

22 Nov 2017, 2:18 AM
#78
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

AquaticAddiction:

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!

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

22 Nov 2017, 4:36 AM
#79
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Square Payment Module for Zen Cart [Support Thread]

jmsnyder23:

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.

22 Nov 2017, 4:37 AM
#80
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

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).