If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / Are there issues with setting up square PHP Version 8.2.4

Are there issues with setting up square PHP Version 8.2.4

Started by spawnie69 on 28 Mar 2023, 4:44 PM · Views: 8,322

Results 1 to 18 of 18
28 Mar 2023, 4:44 PM
#1
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Post #1 by spawnie69

I am in the process of working on an upgrade and installed zen 1.5.8a on PHP Version 8.2.4.

It appears that my square credentials installed ok but for some reason I am not able to enter anything into the the credit card fields as shown in image.

My guess was that the php version is not the right one for square? Not sure.

Any insight is much appreciated.

28 Mar 2023, 5:24 PM
#2
simon1066 avatar

simon1066

Totally Zenned

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

Post #2 by simon1066

Couple of things. It appears you are using the older version of Square - that stopped working last year. It has been replaced by Square webPay which is in the plugins section BUT is only compatible with PHP 7.4 to 8.0

Plugin - https://www.zen-cart.com/downloads.php?do=file&id=2345
Docs - https://docs.zen-cart.com/user/payment/square/

Simon

28 Mar 2023, 6:05 PM
#3
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Post #3 by spawnie69

simon1066:

Couple of things. It appears you are using the older version of Square - that stopped working last year. It has been replaced by Square webPay which is in the plugins section BUT is only compatible with PHP 7.4 to 8.0

Plugin - https://www.zen-cart.com/downloads.php?do=file&id=2345
Docs - https://docs.zen-cart.com/user/payment/square/

So new 1.5.8a installs will install an older square version?
How did you see the version of square?

I was just setting up the included module after the latest 1.5.8a installation.

29 Mar 2023, 12:10 AM
#4
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Post #4 by spawnie69

Simsn1066's advice was the key to dilemma. I felt that the square module from the new install would work as is and it definitely won't.

Therefore I installed Square Webpay. Alongside one page checkout, it seems to work great!
PHP Version 8.2.4

Thank you Simon1066 and lat9 for nice work!

29 Mar 2023, 4:11 AM
#5
carlwhat avatar

carlwhat

zennedOut

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

Post #5 by carlwhat

spawnie69:

Simsn1066's advice was the key to dilemma. I felt that the square module from the new install would work as is and it definitely won't.

Therefore I installed Square Webpay. Alongside one page checkout, it seems to work great!
PHP Version 8.2.4

Thank you Simon1066 and lat9 for nice work!

wow. just wow.

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

29 Mar 2023, 8:50 AM
#6
simon1066 avatar

simon1066

Totally Zenned

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

Post #6 by simon1066

spawnie69:

Simsn1066's advice was the key to dilemma. I felt that the square module from the new install would work as is and it definitely won't.

Therefore I installed Square Webpay. Alongside one page checkout, it seems to work great!
PHP Version 8.2.4

Thank you Simon1066 and lat9 for nice work!

All credit for the 'nice work' should really go to the author of the webPay plugin, @carlwhat

Simon

29 Mar 2023, 11:18 AM
#7
spawnie69 avatar

spawnie69

Totally Zenned

Join Date:
Sep 2005
Location:
Ocala, FL
Posts:
527
Plugin Contributions:
0

Post #7 by spawnie69

Thank you Carlwhat!

I meant to say Carlwhat and lat9 for their amazing work! Bravo!

29 Mar 2023, 4:10 PM
#8
swguy avatar

swguy

Administrator

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

Post #8 by swguy

Please note there is documentation on this topic:

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.

8 Nov 2023, 4:39 PM
#9
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Post #9 by IDEASLady

Hi, I installed this for a customer in 2 of his stores. One works fine but the other one doesn't work after entering the numbers. It doesn't do anything, so for that doesn't generate any errors.

Is there a possibility that the module doesn't work on a subdomain? This is the only reason I can think of for the module not to work.

ZC v1.5.7d
PHP: 7.4

The main store works fine, on subdomain doesn't and even being a subdomain, that stores has its own domain.

IDEASLady
IDEAS Creative Studio

Your image... our business!

8 Nov 2023, 5:10 PM
#10
carlwhat avatar

carlwhat

zennedOut

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

Post #10 by carlwhat

i see no reason why a subdomain would not work.

when you say it doesn't do anything, can you be more specific? does it come up on the admin?

if it is not coming up on the payment page, and you have no error logs, what is on the console for the developer tools on the browser that you are using?

hard to trouble shoot without more information.

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

8 Nov 2023, 5:20 PM
#11
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Post #11 by IDEASLady

When you are in checkout and click "continue" (after entering the numbers of credit card), it doesn't do anything. There's no action, no reload, doesn't try anything. It's like the button is locked and non-active.

All the configuration was done the same way.

Check video: https://capture.dropbox.com/M5Nl64YMADTq266f

IDEASLady
IDEAS Creative Studio

Your image... our business!

8 Nov 2023, 7:49 PM
#12
carlwhat avatar

carlwhat

zennedOut

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

Post #12 by carlwhat

you are having a javascript problem. something is hijacking the button click and not doing anything.

again, i would look at the console using the developer tools and see if you are getting any errors. i think i may log some information there as well.

nothing to do with a sub-domain. everything to do with javascript.

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

8 Nov 2023, 8:07 PM
#13
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Post #13 by IDEASLady

carlwhat:

you are having a javascript problem. something is hijacking the button click and not doing anything.

again, i would look at the console using the developer tools and see if you are getting any errors. i think i may log some information there as well.

nothing to do with a sub-domain. everything to do with javascript.

Yes, that's it. How do I solve it?
https://capture.dropbox.com/krSGjUKQW0GcWqpH

IDEASLady
IDEAS Creative Studio

Your image... our business!

8 Nov 2023, 8:41 PM
#14
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Post #14 by gothstone

jQuerey is built into zen-cart, so something is either preventing it from loading, or trashing it. If you post a link to the broken subdomain we could take a look at what javascript is being loaded.

2 + 2 = 5 for extremely large values of 2

Pez Collectors Store •••••••• My Plugins List

8 Nov 2023, 10:48 PM
#15
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Post #15 by IDEASLady

Here: uoresources. com

IDEASLady
IDEAS Creative Studio

Your image... our business!

8 Nov 2023, 11:58 PM
#16
carlwhat avatar

carlwhat

zennedOut

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

Post #16 by carlwhat

it looks like you do not have jquery loaded in your template.

in:

includes/templates/goldonyx/common/html_header.php

add the following somewhere before the </head>:

<script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>

let us know if that works.

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.

9 Nov 2023, 12:51 AM
#17
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Post #17 by IDEASLady

As a charm!!! Thank you.

IDEASLady
IDEAS Creative Studio

Your image... our business!

9 Nov 2023, 5:50 AM
#18
carlwhat avatar

carlwhat

zennedOut

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

Post #18 by carlwhat

ideasgirl:

As a charm!!! Thank you.

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