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 561 to 580 of 808
18 Jan 2024, 6:02 AM
#561
todoonada avatar

todoonada

Zen Follower

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

Square WebPay support thread.

carlwhat:

as i have previously stated, i have zero customers using square. but i did set up a test site on the internet and spun up my apple laptop. it is running:

Did you mean "...zero customers using apple"?

18 Jan 2024, 9:56 AM
#562
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.

royaldave:

My customer insists they have latest IOS, safari and chrome versions - the payment wouldn't work on safari or chrome.
Is there some apple setting that might cause this - I am totally not an apple person and wouldn't have a clue where to begin looking.

The fact here is that most of the time it is something they enabled, changed, added or otherwise screwed around with all their browser settings. Malware or a BHO in their browser....

There will always be people who report issues and like I said most times it's them, but you can't help most of them. Sometimes you just have to tell them to try a different device.

Also, Apple seriously does whatever it wants with regard to web standards.... Always have.

~Melanie

18 Jan 2024, 2:54 PM
#563
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

todoonada:

Did you mean "...zero customers using apple"?

no, i did not. perhaps zero clients using square is more appropriate.

my few clients use my authorize net plugin; and some form of the dreaded paypal. i host them all on linux servers, and i use a linux workstation for my own development.

some clients use apple for their own workstations; but in general, i do not.

i only coded this module as someone asked me to do it. so i did it for the community. setting up very specific environments to simulate what a store's customer might have, is a bit of work. but i do want to ensure that the code works for most environments.

hope that answers your question.

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

18 Jan 2024, 5:48 PM
#564
swguy avatar

swguy

Administrator

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

Re: Square WebPay support thread.

I can confirm that Square works fine on my iMac. As @carlwhat noted, the OP's installation is out of date.

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.

18 Jan 2024, 6:17 PM
#565
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.

1.5.8a
Tried with both PHP 7.4 and 8.0
version 1.04 of WebPay
OPC
EO (Can edit the orders with this)
bootstrap template

This just cropped up for one site and the solutions mentioned earlier made things worse.

Here's what we started getting a couple of weeks ago (today's version/date):

[17-Jan-2024 15:26:21 America/Denver] PHP Fatal error: Uncaught Error: Call to a member function getOrders() on array in /includes/modules/payment/square_webPay.php:913Stack trace:
#0 /includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(1570)
#1 /******/orders.php(740): square_webPay->admin_notification(1570)
#2 /******/index.php(11): require('/home/******/...')
#3 {main}
thrown in /includes/modules/payment/square_webPay.php on line 913


[17-Jan-2024 15:26:21 America/Denver] Request URI: /******/index.php?cmd=orders&origin=index&page=1&oID=1570&action=edit, IP address: 12.34.56.78
--> PHP Fatal error: Uncaught Error: Call to a member function getOrders() on array in /includes/modules/payment/square_webPay.php:913
Stack trace:
#0 /includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(1570)
#1 /******/orders.php(740): square_webPay->admin_notification(1570)
#2 /******/index.php(11): require('/home/******/...')
#3 {main}
thrown in /includes/modules/payment/square_webPay.php on line 913.

When adding the suggested code in post #527, the error changes to:

[18-Jan-2024 10:47:02 America/Denver] Request URI: /******/index.php?cmd=orders&page=1&oID=1570&action=edit, IP address: 12.34.56.78, Language id 1#1 square_webPay->lookupOrderDetails() called at [/includes/modules/payment/square_webPay.php:526]
#2 square_webPay->admin_notification() called at [/******/orders.php:740]
#3 require(/******/orders.php) called at [/******/index.php:11]
--> PHP Warning: Undefined variable $apiResponse in /includes/modules/payment/square_webPay.php on line 911.


[18-Jan-2024 10:47:02 America/Denver] PHP Fatal error: Uncaught TypeError: square_webPay::processResult(): Argument #1 ($apiResponse) must be of type object, null given, called in /includes/modules/payment/square_webPay.php on line 911 and defined in /includes/modules/payment/square_webPay.php:473
Stack trace:
#0 /includes/modules/payment/square_webPay.php(911): square_webPay->processResult(NULL, Object(Square\Models\BatchRetrieveOrdersRequest))
#1 /includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(1570)
#2 /******/orders.php(740): square_webPay->admin_notification(1570)
#3 /******/index.php(11): require('/home/******/...')
#4 {main}
thrown in /includes/modules/payment/square_webPay.php on line 473


[18-Jan-2024 10:47:02 America/Denver] Request URI: /******/index.php?cmd=orders&page=1&oID=1570&action=edit, IP address: 12.34.56.78
--> PHP Fatal error: Uncaught TypeError: square_webPay::processResult(): Argument #1 ($apiResponse) must be of type object, null given, called in /includes/modules/payment/square_webPay.php on line 911 and defined in /includes/modules/payment/square_webPay.php:473
Stack trace:
#0 /includes/modules/payment/square_webPay.php(911): square_webPay->processResult(NULL, Object(Square\Models\BatchRetrieveOrdersRequest))
#1 /includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(1570)
#2 /******/orders.php(740): square_webPay->admin_notification(1570)
#3 /******/index.php(11): require('/home/******/...')
#4 {main}
thrown in /includes/modules/payment/square_webPay.php on line 473.

I do not know if EO has to run the API to get its info but, we are able to edit orders. However, EO does not provide capture or refund capabilities. We set everything to capture versus authorize and have been refunding (where needed) thru Square.

THANX in advance for your assitance

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

18 Jan 2024, 6:21 PM
#566
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.

We are now receiving emails stating:

Jan-18-2024 11:01:54
=================================

Error Dump: [UNAUTHORIZED]: This request could not be authorized.

Sent to Square: SquareModelsBatchRetrieveOrdersRequest Object
(
[locationId:SquareModelsBatchRetrieveOrdersRequest:private] =>
[orderIds:SquareModelsBatchRetrieveOrdersRequest:private] => Array
(
[0] => nwMNvXeqAS9HsQJmL72KKDSDZtOZY
)

)

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

19 Jan 2024, 2:52 AM
#567
royaldave avatar

royaldave

Zen Follower

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

Re: Square WebPay support thread.

carlwhat:

as i stated somewhere above, you need to be on the latest version of this module.

you have numerous customers placing orders successfully; some can not. one customer insists everything on his computer is current and yet can not place an order. as i previously stated, i do believe the problem lies there, and not with this code. but feel free to add something new. code does have bugs, and can always be improved.

best.

Hi

I never suggested there was an issue with the code - I am convinced its an environment issue - I'd just like to have a solution to give my clients.
I fully understand how to switch on/off javascript in safari, but the fact they claim it then also doesn't work in chrome on the same device is what's throwing me - that really was my question.

31 Jan 2024, 2:18 AM
#568
pejjy avatar

pejjy

New Zenner

Join Date:
Jan 2019
Location:
Wales
Posts:
5
Plugin Contributions:
0

Re: Square WebPay support thread.

I've been using Square Webpay successfully with no problems for 6 months or so on 6 shops managed by myself.

Yesterday, a customer tried to pay on one of the shops and the payment failed with a message similar to
"Authorization failed to instantiate...."

This shop is running on
Zen Cart 1.5.8a
PHP Version: 8.1.27

I've tested this myself and the problem is with Zen Cart and Square Webpay. My other 5 shops are all running fine on the same version of Square, PHP and either Zen Cart 1.5.8 or 1.5.7.

I have created a new Application ID and OAUTH (application secret) on the afflicted shop and entered these details into my Zen Cart Square Webpay module but when I click on the link "click here to log in and authorize your account" I just get a completely blank screen.
I've checked and rechecked (repeatedly) and I can't find the error.

I've tried 3 different browsers with the same result. I've deleted cookies, browsing history etc.. and I'm still getting a blank screen.

Please help!

31 Jan 2024, 2:07 PM
#569
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Square WebPay support thread.

Pejjy:

I've been using Square Webpay successfully with no problems for 6 months or so on 6 shops managed by myself.

Yesterday, a customer tried to pay on one of the shops and the payment failed with a message similar to
"Authorization failed to instantiate...."

This shop is running on
Zen Cart 1.5.8a
PHP Version: 8.1.27

I've tested this myself and the problem is with Zen Cart and Square Webpay. My other 5 shops are all running fine on the same version of Square, PHP and either Zen Cart 1.5.8 or 1.5.7.

I have created a new Application ID and OAUTH (application secret) on the afflicted shop and entered these details into my Zen Cart Square Webpay module but when I click on the link "click here to log in and authorize your account" I just get a completely blank screen.
I've checked and rechecked (repeatedly) and I can't find the error.

I've tried 3 different browsers with the same result. I've deleted cookies, browsing history etc.. and I'm still getting a blank screen.

Please help!

Which version of Square WebPay?
Noting that the version in Plugins is only guaranteed to work up to PHP 8.0 with ZC v1.5.6 & v1.5.7 (You might have got lucky with your ZC 1.5.7 & 1.5.8 sites, especially if you've applied some of the code changes which, from memory, have been mentioned in this thread.)

A blank screen should have generated a debug file in your logs folder.

Simon

31 Jan 2024, 4:45 PM
#570
pejjy avatar

pejjy

New Zenner

Join Date:
Jan 2019
Location:
Wales
Posts:
5
Plugin Contributions:
0

Re: Square WebPay support thread.

simon1066:

Which version of Square WebPay?
Noting that the version in Plugins is only guaranteed to work up to PHP 8.0 with ZC v1.5.6 & v1.5.7 (You might have got lucky with your ZC 1.5.7 & 1.5.8 sites, especially if you've applied some of the code changes which, from memory, have been mentioned in this thread.)

A blank screen should have generated a debug file in your logs folder.


I'm using Square Webpay 1.0.4 I think this is the latest version.

Debug log:

[31-Jan-2024 15:53:44 Europe/London] PHP Fatal error: Uncaught Error: Found unconstructed IntlDateFormatter in /mydomain/includes/classes/zcDate.php:92
Stack trace:
#0 /mydomain.co.uk/includes/classes/zcDate.php(92): IntlDateFormatter->getPattern()
#1 /mydomain.co.uk/includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /mydomain.co.uk/includes/autoload_func.php(47): zcDate->__construct()
#3 /mydomain.co.uk/includes/application_top.php(237): require('/homepages/0/d2...')
#4 /mydomain.co.uk/squareWebPay_handler.php(23): require('/homepages/0/d2...')
#5 {main}
thrown in /mydomain.co.uk/includes/classes/zcDate.php on line 92

[31-Jan-2024 15:53:44 Europe/London] Request URI: /squareWebPay_handler.php?nocache=1&_=1706715189779, IP address: 2a00:23c7:c69e:3501:bd68:4ef8:dcdc:8ba9
--> PHP Fatal error: Uncaught Error: Found unconstructed IntlDateFormatter in /mydomain.co.uk/includes/classes/zcDate.php:92
Stack trace:
#0 /mydomain.co.uk/includes/classes/zcDate.php(92): IntlDateFormatter->getPattern()
#1 /mydomain.co.uk/includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /mydomain.co.uk/includes/autoload_func.php(47): zcDate->__construct()
#3 /mydomain.co.uk/includes/application_top.php(237): require('/homepages/0/d2...')
#4 /mydomain.co.uk/squareWebPay_handler.php(23): require('/homepages/0/d2...')
#5 {main}
thrown in /mydomain.co.uk/includes/classes/zcDate.php on line 92.

31 Jan 2024, 6:57 PM
#571
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0
7 Feb 2024, 4:38 PM
#572
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: Square WebPay support thread.

Newby question. I have a module for my credit card processor currently. They seem to be charging me more than what seems reasonable, so I'm looking for a new module. I was looking at paypal, but then saw this. Can I add this in addition to the existing module? Currently at check out, the can choose credit card (current processor) or a "bill me" option. Can I install this and have it as another choice in the list or will this rearrange my whole checkout? Being able to go back to something that works well is my main concern. Running vc 1.57 Thanks

9 Feb 2024, 4:39 AM
#573
royaldave avatar

royaldave

Zen Follower

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

Re: Square WebPay support thread.

CosmosK:

Newby question. I have a module for my credit card processor currently. They seem to be charging me more than what seems reasonable, so I'm looking for a new module. I was looking at paypal, but then saw this. Can I add this in addition to the existing module? Currently at check out, the can choose credit card (current processor) or a "bill me" option. Can I install this and have it as another choice in the list or will this rearrange my whole checkout? Being able to go back to something that works well is my main concern. Running vc 1.57 Thanks

It -should- work, however as with everything you won't know until you try.

It should just add a 3rd option to your payment page.

9 Feb 2024, 11:17 AM
#574
swguy avatar

swguy

Administrator

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

Re: Square WebPay support thread.

Can I install this and have it as another choice in the list

You could, but you probably would want to disable the other CC module. Having two CC modules on the payment page would be confusing to customers.

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.

9 Feb 2024, 5:12 PM
#575
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: Square WebPay support thread.

swguy:

Can I install this and have it as another choice in the list

You could, but you probably would want to disable the other CC module. Having two CC modules on the payment page would be confusing to customers.

Yes, just want to make sure it works before cutting over. I imagine I just need a square account first. Thanks for the info.

9 Feb 2024, 5:53 PM
#576
swguy avatar

swguy

Administrator

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

Re: Square WebPay support thread.

Follow the installation instructions very carefully. Pitfalls abound!

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

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.

9 Feb 2024, 6:16 PM
#577
cosmosk avatar

cosmosk

Zen Follower

Join Date:
Jan 2015
Posts:
193
Plugin Contributions:
0

Re: Square WebPay support thread.

swguy:

Follow the installation instructions very carefully. Pitfalls abound!

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

I don't doubt it! Precisely why I want to preserve what's working currently. Thanks!

27 Feb 2024, 3:32 AM
#578
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Square WebPay support thread.

Version 1.58a
Latest bootstrap template 3.6.3
8.1 php
Square_webpay version 1.0.4

Hi all,

I have an issue with the square webpay module which is taking orders (no issue and recording items purchased on the square site) but for some reason the admin is only recording the total amount and not the items that are purchased.

Can someone guide me into the right direction like file that needs to be edited and code would be a great help.

Thanks again.

Outdoorking
Live Site https://www.outdoorking.com.au

27 Feb 2024, 5:20 AM
#579
royaldave avatar

royaldave

Zen Follower

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

Re: Square WebPay support thread.

Bruce1952:

Version 1.58a
Latest bootstrap template 3.6.3
8.1 php
Square_webpay version 1.0.4

Hi all,

I have an issue with the square webpay module which is taking orders (no issue and recording items purchased on the square site) but for some reason the admin is only recording the total amount and not the items that are purchased.

Can someone guide me into the right direction like file that needs to be edited and code would be a great help.

Thanks again.

Your may need the paid version of Square WebPay - v1.0.4 evidently not designed for php8.x.

You will be better off with it as its a newer release and works with later SDK.

See post #551.

27 Feb 2024, 8:54 AM
#580
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Square WebPay support thread.

royaldave:

Your may need the paid version of Square WebPay - v1.0.4 evidently not designed for php8.x.

You will be better off with it as its a newer release and works with later SDK.

See post #551.

For clarity, v1.0.4 is compatible with PHP 7.4 - 8.0

Simon