If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Payment Modules / Square WebPay support thread.

Square WebPay support thread.

Started by carlwhat on 6 Apr 2022, 6:02 PM · Views: 129,956

Results 781 to 800 of 808
15 Dec 2024, 9:30 PM
#781
swguy avatar

swguy

Administrator

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

Square WebPay support thread.

I just noticed this.

jodean:

Is anyone updating the Square plugin to work with PHP 8.0 or are we stuck with mxworks?

You are not stuck with mxworks, you're incredibly lucky to have mxworks doing this difficult work for a nominal fee.

Both @lat9 and I have done custom payment module work for customers, and have charged multiple thousands of dollars.
Ain't life grand that someone is selling the Square integration to multiple people so that no one person has to pay full freight.
Thank you @carlwhat and other developers who are contributing to the Zen Cart plugin pool.

Instructions on buying the Square plugin in the help documentation here:

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

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Dec 2024, 11:28 PM
#782
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Square WebPay support thread.

jodean:

The plugin page on Zencart states as follows.

Please note: PHP8.1+ requires a paid upgrade; purchase through https://mxworks.cc/?product=zen-cart-square-plugin-for-php-8-x

They require $100 to download it.

There is a LOT that is freely available for use with Zen Cart. This is one of those exceptions and is very well worth the $100. mxworks makes one available free free. If you don't want to use that one, he's kind enough to offer a different version you can easily get.

@swguy makes a good point. If you were to buy this out right, it would be thousands.

Jim
Wheaton Website Services

16 Dec 2024, 5:59 AM
#783
todoonada avatar

todoonada

Zen Follower

Join Date:
Nov 2006
Posts:
127
Plugin Contributions:
0

Re: Square WebPay support thread.

I bought carlwhat's Square module recently and it works great. He reacted quickly to a question I had.
The price is very reasonable. Google and Apple pay are also included.
The more people buy the module, the better the future of Square on Zen Cart.

16 Dec 2024, 11:00 AM
#784
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

Re: Square WebPay support thread.

todoonada:

I bought carlwhat's Square module recently and it works great. He reacted quickly to a question I had.
The price is very reasonable. Google and Apple pay are also included.
The more people buy the module, the better the future of Square on Zen Cart.

I have purchased it also for clients many times and never an issue. The money for the plugin is very small vs the massive hours it takes to analyze an API and build integration. Carl is a hero!

16 Dec 2024, 3:01 PM
#785
royaldave avatar

royaldave

Zen Follower

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

Re: Square WebPay support thread.

mprough:

I have purchased it also for clients many times and never an issue. The money for the plugin is very small vs the massive hours it takes to analyze an API and build integration. Carl is a hero!

Will just add my praise to Carl - purchased for myself and it works flawlessly.

I get it, especially when we go down the path of using a 'free' product like zen cart you don't want to be paying for add-ons. But this one is worth it if you want to go down the square path.

17 Dec 2024, 2:18 AM
#786
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

many thanks for all your words of support.

it truly means a lot to me.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

27 Jan 2025, 5:42 PM
#787
swguy avatar

swguy

Administrator

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

Re: Square WebPay support thread.

New issue with version 2.0.2:

Your transaction failed due to an error: [INVALID_CARD_DATA] Card nonce not found in this application environment. Please ensure an application ID belonging to the same environment is used when generating the nonce.

Have tried multiple cards.

Update: Aha! The issue is that if you are importing a live site database to the test site, you need to delete the Square Webpay app - it's not enough just to update the App ID and secret. Delete and re-add per the instructions and this issue will be resolved.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

27 Jan 2025, 10:31 PM
#788
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

swguy:

New issue with version 2.0.2:

Your transaction failed due to an error: [INVALID_CARD_DATA] Card nonce not found in this application environment. Please ensure an application ID belonging to the same environment is used when generating the nonce.

Have tried multiple cards.

Update: Aha! The issue is that if you are importing a live site database to the test site, you need to delete the Square Webpay app - it's not enough just to update the App ID and secret. Delete and re-add per the instructions and this issue will be resolved.

well, i certainly am happy that you got that figured out before i started burning a bunch of time on that one!

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

27 Jan 2025, 10:50 PM
#789
swguy avatar

swguy

Administrator

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

Re: Square WebPay support thread.

It will be in the documentation too so that anyone else who makes this error will be able to fix it.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

3 Mar 2025, 2:46 PM
#790
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Square WebPay support thread.

swguy:

I just noticed this.

You are not stuck with mxworks, you're incredibly lucky to have mxworks doing this difficult work for a nominal fee.

Both @lat9 and I have done custom payment module work for customers, and have charged multiple thousands of dollars.
Ain't life grand that someone is selling the Square integration to multiple people so that no one person has to pay full freight.
Thank you @carlwhat and other developers who are contributing to the Zen Cart plugin pool.

Instructions on buying the Square plugin in the help documentation here:

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

We are indeed lucky to have mxworks doing this difficult work. My site was very modded but mxworks persisted with my upgrade to both Zen cart and square. Thank you mxworks

3 Mar 2025, 2:53 PM
#791
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Square WebPay support thread.

mprough:

I have purchased it also for clients many times and never an issue. The money for the plugin is very small vs the massive hours it takes to analyze an API and build integration. Carl is a hero!

Custom payment modules are expensive and time consuming. We've built them for clients, as others here have as well.

Having @carlwhat build, maintain and support this module is a huge benefit to the Zen Cart community and all those business owners using this module. Thanks Carl!!

Jim
Wheaton Website Services

23 Mar 2026, 7:12 AM
#792
dml73 avatar

dml73

Zen Follower

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

Re: Square WebPay support thread.

I was wondering how it would be possible to remove the "Credit Card" radio button and text? It's a bit confusing with two credit card buttons.
Attachment 21197

24 Mar 2026, 2:54 AM
#793
royaldave avatar

royaldave

Zen Follower

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

Re: Square WebPay support thread.

DML73:

I was wondering how it would be possible to remove the "Credit Card" radio button and text? It's a bit confusing with two credit card buttons.
Attachment 21197

Hi

What payment options do you have installed, because the initial one looks like it comes from a different payment plugin?

If you want to distinguish the two options I'd consider amending your language files to highlight where the payment is going through - ie 'Credit Card through Square', and I have no idea what the other one is.

24 Mar 2026, 6:55 AM
#794
dml73 avatar

dml73

Zen Follower

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

Re: Square WebPay support thread.

The first one is the authorizenet module, I use this for credit card processing, and then only use the squarepay module for Apple and Google Pay.

24 Mar 2026, 12:55 PM
#795
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Square WebPay support thread.

DML73:

The first one is the authorizenet module, I use this for credit card processing, and then only use the squarepay module for Apple and Google Pay.
You can change the Square Webpay language file's constant:

    define('MODULE_PAYMENT_SQ_WEBPAY_TEXT_CATALOG_TITLE', 'Google Pay/Apple Pay');  // Payment option title as displayed to the customer
24 Mar 2026, 1:29 PM
#796
dml73 avatar

dml73

Zen Follower

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

Re: Square WebPay support thread.

Ah yes that will work :bigups:

8 May 2026, 10:26 AM
#797
swguy avatar

swguy

Administrator

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

Re: Square WebPay support thread.

If you are using Square as a storeowner and you have a developer working with you, they can have their own account so you don't have to coordinate for two factor authentication checks. It's called creating an Authorized Representative. See https://docs.zen-cart.com/user/payment/square/#square-authorized-representative

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

4 Jun 2026, 12:12 AM
#798
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Square WebPay support thread.

ZC Version 2.2.2 with PHP 8.5, OPC and WebPay 3.1.2

The ID and Secret are verified and from production vs test. Callback URL established correctly as well.

I cannot verify that the customer is using the correct SDK until tomorrow (I forgot to look when I was in there)

The upgrade was done by first removing the includes/modules/payment/square_webPay folder per instructions.

Purchase attempts are getting " Unable to process payment due to a communications error. You may try again or contact us for assistance."

Log file is:

[04-Jun-2026 00:00:52 UTC] Request URI: /index.php?main_page=checkout_process, IP address: 246.197.16.99, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/payment/square_webPay.php(535): trigger_error()
#2 /includes/modules/payment/square_webPay.php(514): square_webPay->logSquareApiException()
#3 /includes/modules/payment/square_webPay.php(469): square_webPay->paymentRequest()
#4 /includes/classes/payment.php(382): square_webPay->before_process()
#5 /includes/modules/checkout_process.php(110): payment->before_process()
#6 /includes/modules/pages/checkout_process/header_php.php(13): require('/home/spicdavi/...')
#7 /index.php(40): require('/home/******/...')
--> PHP Notice: Code: 400-> API request failed
Status code: 400
Body: {"errors": [{"code": "INVALID_CARD_DATA","detail": "Card nonce not found in this application environment. Please ensure an application ID belonging to the same environment is used when generating the nonce.","category": "INVALID_REQUEST_ERROR"}]}
{} in /includes/modules/payment/square_webPay.php on line 535.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

4 Jun 2026, 3:16 PM
#799
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

dbltoe:

ZC Version 2.2.2 with PHP 8.5, OPC and WebPay 3.1.2

The ID and Secret are verified and from production vs test. Callback URL established correctly as well.

I cannot verify that the customer is using the correct SDK until tomorrow (I forgot to look when I was in there)

The upgrade was done by first removing the includes/modules/payment/square_webPay folder per instructions.

Purchase attempts are getting " Unable to process payment due to a communications error. You may try again or contact us for assistance."

Log file is:

[04-Jun-2026 00:00:52 UTC] Request URI: /index.php?main_page=checkout_process, IP address: 246.197.16.99, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/payment/square_webPay.php(535): trigger_error()
#2 /includes/modules/payment/square_webPay.php(514): square_webPay->logSquareApiException()
#3 /includes/modules/payment/square_webPay.php(469): square_webPay->paymentRequest()
#4 /includes/classes/payment.php(382): square_webPay->before_process()
#5 /includes/modules/checkout_process.php(110): payment->before_process()
#6 /includes/modules/pages/checkout_process/header_php.php(13): require('/home/spicdavi/...')
#7 /index.php(40): require('/home/******/...')
--> PHP Notice: Code: 400-> API request failed
Status code: 400
Body: {"errors": [{"code": "INVALID_CARD_DATA","detail": "Card nonce not found in this application environment. Please ensure an application ID belonging to the same environment is used when generating the nonce.","category": "INVALID_REQUEST_ERROR"}]}
{} in /includes/modules/payment/square_webPay.php on line 535.


there is a mis-configuration going on.  specifically between the production and sandbox environments.

i would suggest deleting all of your access tokens, their refresh tokens, and their TTL values.  and then ensure that you the correct ID and Secret for the selected environment.

those keys are all something like:

MODULE_PAYMENT_SQ_WEBPAY_ACCESS_TOKEN
MODULE_PAYMENT_SQ_WEBPAY_TOKEN_EXPIRES_AT
MODULE_PAYMENT_SQ_WEBPAY_REFRESH_TOKEN
MODULE_PAYMENT_SQ_WEBPAY_SANDBOX_TOKEN
MODULE_PAYMENT_SQ_WEBPAY_SANDBOX_TOKEN_EXPIRES_AT
MODULE_PAYMENT_SQ_WEBPAY_SANDBOX_REFRESH_TOKEN

you can review [this post.](https://www.zen-cart.com/showthread.php/228750-Square-WebPay-support-thread?p=1405584#post1405584)

as well as [this post.](https://www.zen-cart.com/showthread.php/222449-Square-Payment-Module-for-Zen-Cart-Support-Thread?p=1411455#post1411455)

the first post takes a hammer and reconstructs.  the 2nd post takes a dull scalpel and then sews up....  in both cases you will need to get a new oauth token.

hopefully that will help resolve this issue.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

4 Jun 2026, 5:05 PM
#800
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Square WebPay support thread.

That was interesting, to say the least. I did, in fact, find the old data in the database.

However, this situation was a bit different, as the business was sold and the current owner was adding their code to the mod. That was in addition to the upgrade from 2.2.0 to 2.2.2 in the midst of everything else.

The SDK was one step newer as well, so I set it correctly.

The only problem now (minor at best) is that orders processed under the previous owner throw an error when viewing details or using Edit Orders due to the company changing hands.

Thanks for pointing me in the right direction. The docs showed no search results for **Card nonce not found in this application **or any variance of that search string.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com