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,731

Results 801 to 820 of 835
15 Jun 2025, 1:32 PM
#801
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
413
Plugin Contributions:
0

Square Payment Module for Zen Cart [Support Thread]

mprough:

Clear your cookies

I tried that now, but unfortunately it didn't change anything. It's still showing Access Token needed.

15 Jun 2025, 4:12 PM
#802
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

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

Have you pressed the green button that says "Click here to login and Authorize your account"?

15 Jun 2025, 4:59 PM
#803
dbltoe avatar

dbltoe

Totally Zenned

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

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

Your other posts indicate that you are using ZC 2.1.0. If so, the Square Web Payment mod is probably not going to work for you.

There is a commercial version available.

15 Jun 2025, 5:38 PM
#804
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
413
Plugin Contributions:
0

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

swguy:

Have you pressed the green button that says "Click here to login and Authorize your account"?

Yes I did

15 Jun 2025, 5:39 PM
#805
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
413
Plugin Contributions:
0

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

dbltoe:

Your other posts indicate that you are using ZC 2.1.0. If so, the Square Web Payment mod is probably not going to work for you.

There is a commercial version available.

I purchased this version, so I assume it should work:
https://mxworks.cc/

16 Jun 2025, 2:33 AM
#806
dbltoe avatar

dbltoe

Totally Zenned

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

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

DML73:

I purchased this version, so I assume it should work:
https://mxworks.cc/

It will work fine when setup. I was concerned that you were trying to use the old mod.

16 Jun 2025, 10:59 AM
#808
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
413
Plugin Contributions:
0

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

swguy:

When you created your OAuth credentials, did you press the "Production" tab like it says to in step 8:

https://docs.zen-cart.com/user/payment/square/#installing-square-web-payments---first-time

Yes I did make sure production is selected. I also now selected the correct API version.

I believe it now got it working, by first entering the Sandbox credentials in Zencart, then update, then replace the Sandbox credentials with Production credentials.

The credit card option displays on my checkout_one page, but I guess it isn't supposed to look like this(?):

Attachment 20991

3 Nov 2025, 6:58 PM
#809
oldbikemags avatar

oldbikemags

New Zenner

Join Date:
Oct 2025
Location:
Canada
Posts:
3
Plugin Contributions:
0

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

I am testing the Square WebPay module on my site.

I did a test purchase setting myself up with a customer profile. When I paid using my credit card I got the following text on a blank page:

my site folder/includes/modules/payment/square_webPay.php:333

I checked my Square dashboard and the transaction appeared there.

What am I missing in my site to have a page appear with a "payment received" confirmation?

The current behaviour is a security risk...

OldBikeMags

4 Nov 2025, 5:10 AM
#810
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
942
Plugin Contributions:
3

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

OldBikeMags:

I am testing the Square WebPay module on my site.

I did a test purchase setting myself up with a customer profile. When I paid using my credit card I got the following text on a blank page:

my site folder/includes/modules/payment/square_webPay.php:333

I checked my Square dashboard and the transaction appeared there.

What am I missing in my site to have a page appear with a "payment received" confirmation?

The current behaviour is a security risk...

OldBikeMags

There should be an error log with this if you get a blank page. Can you include the full log as well as provide the details of which version ZenCart you're using plus which of the module you're using?

4 Nov 2025, 5:11 AM
#811
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
942
Plugin Contributions:
3

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

DML73:

Yes I did make sure production is selected. I also now selected the correct API version.

I believe it now got it working, by first entering the Sandbox credentials in Zencart, then update, then replace the Sandbox credentials with Production credentials.

The credit card option displays on my checkout_one page, but I guess it isn't supposed to look like this(?):

Attachment 20991

Are you testing this on an HTTPS server? (Even in sandbox, you need to run it through HTTPS or it will not work.)

4 Nov 2025, 3:00 PM
#812
oldbikemags avatar

oldbikemags

New Zenner

Join Date:
Oct 2025
Location:
Canada
Posts:
3
Plugin Contributions:
0

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

Looks like I have some work to do...

Zen Cart v1.5.8

Square Web Payments Module 1.0.4

I checked the error logs and they are literally too large to paste here.

The latest log entry contained 23 warnings for constants already defined in this format.

PHP Warning: Constant MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TITLE already defined in /my site folders/includes/languages/english/modules/payment/square_webPay.php on line xx.

MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TITLE
MODULE_PAYMENT_SQUARE_ENTRY_TRANSACTION_SUMMARY
MODULE_PAYMENT_SQUARE_ENTRY_REFUND
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_AMOUNT_TEXT
MODULE_PAYMENT_SQUARE_TEXT_REFUND_CONFIRM_CHECK
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TEXT_COMMENTS
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_DEFAULT_MESSAGE
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_SUFFIX
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_BUTTON_TEXT
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TITLE
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE
MODULE_PAYMENT_SQUARE_TEXT_CAPTURE_CONFIRM_CHECK
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TEXT_COMMENTS
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_DEFAULT_MESSAGE
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_SUFFIX
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_BUTTON_TEXT
MODULE_PAYMENT_SQUARE_ENTRY_VOID_TITLE
MODULE_PAYMENT_SQUARE_ENTRY_VOID
MODULE_PAYMENT_SQUARE_TEXT_VOID_CONFIRM_CHECK
MODULE_PAYMENT_SQUARE_ENTRY_VOID_DEFAULT_MESSAGE
MODULE_PAYMENT_SQUARE_ENTRY_VOID_SUFFIX
MODULE_PAYMENT_SQUARE_ENTRY_VOID_BUTTON_TEXT
MODULE_PAYMENT_SQUARE_ENTRY_VOID_TEXT_COMMENTS

4 Nov 2025, 3:18 PM
#813
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

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

Version 1.0.4 is long deprecated. For PHP8, you need to get the updated module.

https://docs.zen-cart.com/user/payment/square_commercial_module/

4 Nov 2025, 3:19 PM
#814
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,953
Plugin Contributions:
8

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

OldBikeMags:

...

The current behaviour is a security risk...

...

first off, you are on the deprecated/retired support thread for the square payment module.

there is a separate support thread for the square webpay payment module. a bit confusing, perhaps, but just a bit of info...

with regards to your above comment, would you care to elaborate? what sort of security risk do you think exists?

OldBikeMags:

Looks like I have some work to do...

Zen Cart v1.5.8

Square Web Payments Module 1.0.4

I checked the error logs and they are literally too large to paste here.

The latest log entry contained 23 warnings for constants already defined in this format.

PHP Warning: Constant MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TITLE already defined in /my site folders/includes/languages/english/modules/payment/square_webPay.php on line xx.

MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TITLE
MODULE_PAYMENT_SQUARE_ENTRY_TRANSACTION_SUMMARY
MODULE_PAYMENT_SQUARE_ENTRY_REFUND
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_AMOUNT_TEXT
MODULE_PAYMENT_SQUARE_TEXT_REFUND_CONFIRM_CHECK
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TEXT_COMMENTS
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_DEFAULT_MESSAGE
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_SUFFIX
MODULE_PAYMENT_SQUARE_ENTRY_REFUND_BUTTON_TEXT
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TITLE
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE
MODULE_PAYMENT_SQUARE_TEXT_CAPTURE_CONFIRM_CHECK
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TEXT_COMMENTS
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_DEFAULT_MESSAGE
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_SUFFIX
MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_BUTTON_TEXT
MODULE_PAYMENT_SQUARE_ENTRY_VOID_TITLE
MODULE_PAYMENT_SQUARE_ENTRY_VOID
MODULE_PAYMENT_SQUARE_TEXT_VOID_CONFIRM_CHECK
MODULE_PAYMENT_SQUARE_ENTRY_VOID_DEFAULT_MESSAGE
MODULE_PAYMENT_SQUARE_ENTRY_VOID_SUFFIX
MODULE_PAYMENT_SQUARE_ENTRY_VOID_BUTTON_TEXT
MODULE_PAYMENT_SQUARE_ENTRY_VOID_TEXT_COMMENTS

i would suggest looking at the documentation and specifically this page.

you can then get to the actual error (as opposed to the warnings you are now seeing).

4 Nov 2025, 4:16 PM
#815
oldbikemags avatar

oldbikemags

New Zenner

Join Date:
Oct 2025
Location:
Canada
Posts:
3
Plugin Contributions:
0

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

Thanks for the info.

As I learn to use this forum I may be able to answer these questions myself.

Re: my concerns about security...

My original question was about text appearing on an otherwise blank page instead of a payment confirmation message.

The text was "/my site folders/includes/modules/payment/square_webPay.php:333". I don't like the idea of site visitors inadvertently seeing the names of folders on my site along with file names with possible parameters.

4 Nov 2025, 4:37 PM
#816
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,953
Plugin Contributions:
8

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

OldBikeMags:

Thanks for the info.

As I learn to use this forum I may be able to answer these questions myself.

Re: my concerns about security...

My original question was about text appearing on an otherwise blank page instead of a payment confirmation message.

The text was "/my site folders/includes/modules/payment/square_webPay.php:333". I don't like the idea of site visitors inadvertently seeing the names of folders on my site along with file names with possible parameters.

i am still not sure how that is a security concern associated with this payment module.

the code that you are using is open source and available for anyone to download. i agree with not wanting your site visitors to see code and line numbers; but this is not a payment module security concern.

and the resolution of that problem (displaying of error logs on a public facing website) is more about your server configuration that anything to do with zen-cart and any of its associated payment modules.

some of us take on the responsibility of protecting sensitive credit card data seriously. the penalties for failure to do so can be extreme.

i would suggest you be more cognizant prior to posting a security problem on your server as a security concern associated with payment modules.

best.

18 Jan 2026, 4:11 AM
#817
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
284
Plugin Contributions:
1

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

I've been forced to create a new square account because my ABN changed a few years ago and they are going to freeze my existing account.

I've followed instructions to get a new ID and secret, and have logged into square from the plugin, however the location id in the module settings is not updating - should I be concerned?

18 Jan 2026, 4:24 AM
#818
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
284
Plugin Contributions:
1

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

Don't worry, I just realised I needed to remove and reinstall. All good now I think!

18 Jan 2026, 4:51 AM
#819
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,953
Plugin Contributions:
8

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

royaldave:

Don't worry, I just realised I needed to remove and reinstall. All good now I think!

:thumbsup:

24 Jan 2026, 5:19 AM
#820
motovista avatar

motovista

New Zenner

Join Date:
Dec 2023
Location:
Watts, Oklahoma
Posts:
8
Plugin Contributions:
0

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

Installed the square webpay plugin.
Got the following error.
Any thoughts.

Failed to load resource: net::ERR_BLOCKED_BY_CLIENTUnderstand this error
index.php?main_page=…eckout_payment:1096 Uncaught SyntaxError: Unexpected token ','Understand this error
square.js:3 Tokenization failed-status: Invalid and errors: [{"field":"verificationDetails.currencyCode","message":"verificationDetails.currencyCode is required and must be a(n) string.","type":"VALIDATION_ERROR"}]
(anonymous) @ square.js:3Understand this error
/squareWebPay_handler.php:1 Failed to load resource: the server responded with a status of 417 ()