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 321 to 340 of 808
14 Nov 2022, 7:48 AM
#321
fpbear avatar

fpbear

New Zenner

Join Date:
Jun 2008
Posts:
25
Plugin Contributions:
1

Square WebPay support thread.

Does anyone know if this new Square payment module will work with the slightly older ZenCart version Zen Cart 1.5.5f (on PHP 7.1.33)?

(We are currently using the DrByte Square module version 1.1, but the credit card fields greyed out this week. I assume this is because of a deprecated module. We have to urgently fix this to continue processing payments but can't upgrade the ZenCart to 1.5.6+ at the moment, in order to maintain template system compatibility.)

14 Nov 2022, 9:21 AM
#322
swguy avatar

swguy

Administrator

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

Re: Square WebPay support thread.

We ... can't upgrade the ZenCart to 1.5.6+ at the moment, in order to maintain template system compatibility.

This is not true at all. Upgrade your cart, upgrade your template, voila you're current.
You are running an old, unsupported PHP and an old, unsupported Zen Cart. It's way past time to upgrade.

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.

14 Nov 2022, 2:50 PM
#323
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

fpbear:

Does anyone know if this new Square payment module will work with the slightly older ZenCart version Zen Cart 1.5.5f (on PHP 7.1.33)?

(We are currently using the DrByte Square module version 1.1, but the credit card fields greyed out this week. I assume this is because of a deprecated module. We have to urgently fix this to continue processing payments but can't upgrade the ZenCart to 1.5.6+ at the moment, in order to maintain template system compatibility.)

it does not work.

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.

14 Nov 2022, 3:11 PM
#324
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

Carbonless:

Thanks for the updated release... got an issue I can't resolve: I've installed and after I enter the Application Secret(OAuth) and save. When I click edit to go in and set the location. The drop down is blankAttachment 20153

Any suggestions on what might be causing this? I do have 2 locations set in square. The one I need to use is the MAIN location set in square.
For domain needtoorder.com

i think something is wrong with your configuration; and specifically you do not have a proper merchant access token.

here is a new trick for you. go to your admin, and to the end of your URL, add sandbox=anything, ie:

https://zcdev.com/zcdev/admin/index.php?cmd=modules&set=payment&module=square_webPay&action=edit&sandbox=anything

you can now see your Live Merchant Token. if that is blank, then that is your problem.

if that is not your problem, you can try the following:

create a test.php file in your root directory with the following code:

<?php
    require('includes/application_top.php');

    include_once DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/square_webPay.php';
    include_once DIR_FS_CATALOG . DIR_WS_LANGUAGES . 'english/modules/payment/square_webPay.php';

$test = new square_webPay();
$pulldown = $test->getLocationsPulldownArray();

print_r($pulldown);
die(__FILE__ . ':' . __LINE__);

when you go to:

yoursite.com/test.php

you should see your locations in an array format.

currently that is coming back as blank.

if your Live Merchant Token is not blank, and the test is coming back with your locations array, and you are still seeing the image you have referenced, let me know and we can further troubleshoot. but i do not think that is the case.

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.

19 Nov 2022, 11:07 PM
#325
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Square WebPay support thread.

When I click the green button
"click her to authorize..."

It takes me with a redirect back to my site, but doesnt actually do an authorize.... url (parts redacted):https://www.needtoorder.com/?code=sq0cgp-VNPxxxxxxxxxxxxxx&response_type=code&state=39fea78c0394c1b5eb18xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#_=_

When I go into edit the payment module, the drop down for location doesnt display locations to choose from.

It says I have 2 active access tokens in my square account under OAuth... so I'm confused as to next steps.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

19 Nov 2022, 11:13 PM
#326
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Square WebPay support thread.

changed the OAuth Redirect URL to:https://needtoorder.com/squareWebPay_handler.php and tried to auth and the page gives me a

This page isn’t working

needtoorder.com is currently unable to handle this request.HTTP ERROR 500

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

20 Nov 2022, 2:07 AM
#327
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Square WebPay support thread.

Payment Module installed DID A RE-UPLOAD OF THE UPLOAD FOLDER, worked perfectly after that.

BUT

Every order that used the previous square mod wont display ANY of the order details!! ??
Attachment 20157
It's completely blank under and after the payment details.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

20 Nov 2022, 2:19 AM
#328
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Square WebPay support thread.

UPDATE orders
SET payment_module_code = 'square_webPay'
WHERE payment_module_code = 'square';

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

20 Nov 2022, 2:19 AM
#329
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Square WebPay support thread.

It's throwing a error log:
[19-Nov-2022 20:17:11 America/Chicago] Request URI: /XXkcaz00/index.php?cmd=orders&page=1&oID=90795&action=edit, IP address: 184.170.174.172
#1 square->token_refresh_check() called at [/includes/modules/payment/square.php:505]
#2 square->getAccessToken() called at [/includes/modules/payment/square.php:816]
#3 square->lookupOrderDetails() called at [/includes/modules/payment/square.php:456]
#4 square->admin_notification() called at [/XXkcaz00/orders.php:881]
#5 require(/XXkcaz00/orders.php) called at [/XXkcaz00/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_SQUARE_APPLICATION_ID - assumed 'MODULE_PAYMENT_SQUARE_APPLICATION_ID' (this will throw an Error in a future version of PHP) in /includes/modules/payment/square.php on line 544.

[19-Nov-2022 20:17:11 America/Chicago] Request URI: /XXkcaz00/index.php?cmd=orders&page=1&oID=90795&action=edit, IP address: 184.170.174.172
#1 square->token_refresh_check() called at [/includes/modules/payment/square.php:505]
#2 square->getAccessToken() called at [/includes/modules/payment/square.php:816]
#3 square->lookupOrderDetails() called at [/includes/modules/payment/square.php:456]
#4 square->admin_notification() called at [/XXkcaz00/orders.php:881]
#5 require(/XXkcaz00/orders.php) called at [/XXkcaz00/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_SQUARE_ACCESS_TOKEN - assumed 'MODULE_PAYMENT_SQUARE_ACCESS_TOKEN' (this will throw an Error in a future version of PHP) in /includes/modules/payment/square.php on line 546.

[19-Nov-2022 20:17:11 America/Chicago] Request URI: /XXkcaz00/index.php?cmd=orders&page=1&oID=90795&action=edit, IP address: 184.170.174.172
#1 square->isTokenExpired() called at [/includes/modules/payment/square.php:559]
#2 square->token_refresh_check() called at [/includes/modules/payment/square.php:505]
#3 square->getAccessToken() called at [/includes/modules/payment/square.php:816]
#4 square->lookupOrderDetails() called at [/includes/modules/payment/square.php:456]
#5 square->admin_notification() called at [/XXkcaz00/orders.php:881]
#6 require(/XXkcaz00/orders.php) called at [/XXkcaz00/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT - assumed 'MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT' (this will throw an Error in a future version of PHP) in /includes/modules/payment/square.php on line 525.

[19-Nov-2022 20:17:11 America/Chicago] Request URI: /XXkcaz00/index.php?cmd=orders&page=1&oID=90795&action=edit, IP address: 184.170.174.172
#1 square->isTokenExpired() called at [/includes/modules/payment/square.php:559]
#2 square->token_refresh_check() called at [/includes/modules/payment/square.php:505]
#3 square->getAccessToken() called at [/includes/modules/payment/square.php:816]
#4 square->lookupOrderDetails() called at [/includes/modules/payment/square.php:456]
#5 square->admin_notification() called at [/XXkcaz00/orders.php:881]
#6 require(/XXkcaz00/orders.php) called at [/XXkcaz00/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT - assumed 'MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT' (this will throw an Error in a future version of PHP) in /includes/modules/payment/square.php on line 526.

[19-Nov-2022 20:17:11 America/Chicago] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT) at position 0 (M): The timezone could not be found in the database in /includes/modules/payment/square.php:526
Stack trace:
#0 /includes/modules/payment/square.php(526): DateTime->_construct('MODULE_PAYMENT...')
#1 /includes/modules/payment/square.php(559): square->isTokenExpired('-15 days')
#2 /includes/modules/payment/square.php(505): square->token_refresh_check()
#3 /includes/modules/payment/square.php(816): square->getAccessToken()
#4 /includes/modules/payment/square.php(456): square->lookupOrderDetails('90795')
#5 /XXkcaz00/orders.php(881): square->admin_notification('90795')
#6 /XXkcaz00/index.php(11): require('/home/feadmin/p...')
#7 {main}
thrown in /includes/modules/payment/square.php on line 526

[19-Nov-2022 20:17:11 America/Chicago] Request URI: /XXkcaz00/index.php?cmd=orders&page=1&oID=90795&action=edit, IP address: 184.170.174.172
--> PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (MODULE_PAYMENT_SQUARE_TOKEN_EXPIRES_AT) at position 0 (M): The timezone could not be found in the database in /includes/modules/payment/square.php:526
Stack trace:
#0 /includes/modules/payment/square.php(526): DateTime->_construct('MODULE_PAYMENT...')
#1 /includes/modules/payment/square.php(559): square->isTokenExpired('-15 days')
#2 /includes/modules/payment/square.php(505): square->token_refresh_check()
#3 /includes/modules/payment/square.php(816): square->getAccessToken()
#4 /includes/modules/payment/square.php(456): square->lookupOrderDetails('90795')
#5 /XXkcaz00/orders.php(881): square->admin_notification('90795')
#6 /XXkcaz00/index.php(11): require('/home/feadmin/p...')
#7 {main}
thrown in /includes/modules/payment/square.php on line 526.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

20 Nov 2022, 2:20 AM
#330
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Square WebPay support thread.

barco57 - Where would this be resolved at? Appreciate your feedback.

wait... I need to run a query to change the previous.... correct?

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

20 Nov 2022, 2:21 AM
#331
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Square WebPay support thread.

admin > tools > install SQL Patches

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

20 Nov 2022, 2:23 AM
#332
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Square WebPay support thread.

Thank You! Appreciate your quick response and direction. Jumping in for the guy that usually does that, and I'm not as familiar.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

23 Nov 2022, 2:45 AM
#333
jeking avatar

jeking

Totally Zenned

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

Re: Square WebPay support thread.

Anyone using this with Numinix FEC? I have a client with FEC 2.4.1 and Zen Cart 1.5.6c

I installed this new plugin and now get this: https://screenrec.com/share/jA5gWp0aSb
One error in the console but about a missing flexslider function

I tried putting jscript_square_webPay.php in /public_html/includes/modules/pages/checkout When I do, this button disappears.

When I turn off FEC, it seems to work fine.

Jim
Wheaton Website Services

23 Nov 2022, 2:11 PM
#334
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Square WebPay support thread.

Installed the App and I am currently testing. Getting a speed bump.

Each time I enter the cc info and click to confirm, the page refreshes and displays a message "Your order's details have changed. Please review the current values and re-submit." The url is for one page checkout: https://needtoorder.com/index.php?main_page=checkout_one.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

23 Nov 2022, 3:29 PM
#335
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

jeking:

Anyone using this with Numinix FEC? I have a client with FEC 2.4.1 and Zen Cart 1.5.6c

I installed this new plugin and now get this: https://screenrec.com/share/jA5gWp0aSb
One error in the console but about a missing flexslider function

I tried putting jscript_square_webPay.php in /public_html/includes/modules/pages/checkout When I do, this button disappears.

When I turn off FEC, it seems to work fine.

jim,
feel free to PM me if you want help with FEC and this module.

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.

23 Nov 2022, 3:32 PM
#336
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

Carbonless:

Installed the App and I am currently testing. Getting a speed bump.

Each time I enter the cc info and click to confirm, the page refreshes and displays a message "Your order's details have changed. Please review the current values and re-submit." The url is for one page checkout: https://needtoorder.com/index.php?main_page=checkout_one.

that error is coming from OPC. it's basically saying the hash has changed and i need to reload everything.

why it is doing that is anyone's guess.

empirical data suggests the square webPay and OPC do play nice together when properly configured. so why OPC is telling you that your order details have changed, perhaps may be better served over on the forum over there. i am not the OPC expert by any stretch.

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.

23 Nov 2022, 6:23 PM
#337
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Square WebPay support thread.

YEP! You were right. It was a OPC configuration. Thank you so much!

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

23 Nov 2022, 6:29 PM
#338
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

Carbonless:

YEP! You were right. It was a OPC configuration. Thank you so much!

:thumbsup:

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

23 Nov 2022, 8:22 PM
#339
swguy avatar

swguy

Administrator

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

Re: Square WebPay support thread.

YEP! You were right. It was a OPC configuration. Thank you so much!

What was the required change ?

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.

23 Nov 2022, 8:49 PM
#340
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Square WebPay support thread.

Changing the OPC accepted payment method from “square” to “square_webPay” after I installed the new Square Web Pay mod.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com