Forums / Addon Payment Modules / Square WebPay support thread.

Square WebPay support thread.

Views: 129,450

Results 21 to 40 of 803
7 Apr 2022, 4:47 PM
#21
dbltoe avatar

dbltoe

Totally Zenned

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

Square WebPay support thread.

For those wanting to stay with earlier PHPs or with 1.5.5 and earlier, here's a new item for your store.:P
[Attachment no longer available]

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

7 Apr 2022, 5:05 PM
#22
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

dbltoe:

As stated in my post above, it is working just fine with the items shown in https://www.zen-cart.com/showthread.php?228750-Square-WebPay-support-thread&p=1387592#post1387592

the issue that @nick1973 is having is definite jquery related and/or OPC related.

he either does not have the checkout_one file i mentioned above or he is having a problem with this part of the code (from for_upload/includes/modules/pages/checkout_payment/jscript_square_webPay.php):

            if (document.querySelector("#checkoutOneSubmit")) {
                formButton = document.querySelector("#checkoutOneSubmit");
            } else {
                formButton = document.querySelector("#paymentSubmit");
            }

i do not know what version of OPC he is running nor jquery; but if the first div with an id of #checkoutOneSubmit is not there, he will have a problem.

i was thinking about adding some console information in the event of problems right here. it has been on my mind of late.

and while i have TOTAL respect for drByte and lat9 for their contributions to this project as well as their troubleshooting abilities, i am perfectly able to provide support on a plugin that i developed and of which i am the most intimately familiar.

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 Apr 2022, 10:41 AM
#23
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Square WebPay support thread.

Before I upload the files I wanted to check something. There are a total of 1656 files. Should all of these be uploaded?

I wasn't sure if they are needed or were files used during the development phase? There seems to be a lot of examples and GitHub files.

Apologies if this is a silly question but easier to ask before I upload.

Thank you for all your hard work on this module! Cake will be on its way once I'm done :smile:

9 Apr 2022, 11:19 AM
#24
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Square WebPay support thread.

All the files in the "for_upload" directory need to be uploaded to your site. The "How to Install" says that. I don't consider the includes/modules/pages/checkout_one/jscript_square_WebPay,php to be "extra".

I look at it as something that should have been included in the original Square mod rather than instructions saying to add the file IF you used OPC. Having it part of the mod will keep a lot of folks from making the mistake of not including this file when they start using OPC.

Not mentioned is the need to change the redirect URL at Square.

I put a method that i use in the second post. This method will have your site down for the least amount of time and get the steps at Square AND your site taken care of safely.

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

9 Apr 2022, 11:33 AM
#25
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

Brent:

Before I upload the files I wanted to check something. There are a total of 1656 files. Should all of these be uploaded?

I wasn't sure if they are needed or were files used during the development phase? There seems to be a lot of examples and GitHub files.

Apologies if this is a silly question but easier to ask before I upload.

Thank you for all your hard work on this module! Cake will be on its way once I'm done :smile:

hey brent
i really did not look at exactly what’s used/not used in the SDK. in the original square mod, all of those files are in the standard ZC vendors directory. i don’t think they take up that much space. perhaps at some point i could look at thinning those out.

the docs directory on the zip are not needed and just part of my instruction page.

and i learned that my US venmo does not work in the uk. but i am working on developing a different platform for international. who knows. maybe it will turn into another ZC payment module.

let me know if u run into any other issues.

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 Apr 2022, 1:39 PM
#26
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Square WebPay support thread.

@dbltoe I did read your helpful post and that is what I was following after reading the instructions that came with the download. I wasn't really referring to the OPC. I don't use it so had removed that.

@carlwhat these are examples of the files I'm referring to. In the jsonmapper folder you have an example folder. Assume all the GitHub references can go?

In the square folder you have already said the doc folder can go. Is example-autoload.php used?

I'm not being difficult and this isn't about space :smile:. I can't code so whatever I upload becomes another orphan that needs investigating when I do file comparisons on upgrading. The cleaner I keep my store and the less I change the easier my life is down the road.

Once you have sorted out a payment option for the UK just post here and I will oblige.

9 Apr 2022, 2:36 PM
#27
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

brent,
you are not being difficult. i do not recommend doing it the way you are doing it; but i would not call you being difficult.

on upgrading, i see wholesale replacement of this folder. as it is a plugin, i think the upgrade process is different than when upgrading the base zc scripts.

but it is not really for me to say what process works best for any individual. we all have our own way of doing things.

as i have no plans to support this way of doing things, i will PM you what files i think can be safely deleted.

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 Apr 2022, 2:48 PM
#28
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Square WebPay support thread.

It's fine. If they should be there I will upload as is. I just wasn't sure if you'd left development files.

Thanks for the quick responses :smile:

15 Apr 2022, 7:05 PM
#29
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

simon1066:

Thank you for your work on this crucial module. Alas, I can't see a way to donate as the Venmo app is not available in the UK

@simon1066

i have re-established a relationship with paypal. hopefully it will last.

thanks again for your support. hopefully it works in the UK:

https://paypal.me/mXworks

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.

15 Apr 2022, 7:33 PM
#30
simon1066 avatar

simon1066

Totally Zenned

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

Re: Square WebPay support thread.

carlwhat:

@simon1066

i have re-established a relationship with paypal. hopefully it will last.

thanks again for your support. hopefully it works in the UK:

https://paypal.me/mXworks

best.

Yes, it works!

Simon

15 Apr 2022, 7:43 PM
#31
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

simon1066:

Yes, it works!

:thumbsup:

thanks again!

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

17 Apr 2022, 7:46 AM
#32
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: Square WebPay support thread.

Just a note for those who have set up the cron job to keep the square token alive. Don't forget to change the job to point at squareWebPay_handler.php in the top directory of your store.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

17 Apr 2022, 3:48 PM
#33
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Square WebPay support thread.

This works well in Apache cPanel

0 0 1,15 * * curl --silent https://YOUR_SITE.com/squareWebPay_handler.php

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 Apr 2022, 5:44 PM
#34
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Square WebPay support thread.

carlwhat:

definitely a jquery issue. what version of jquery are you running?

i have it tested on 3.5.1.

do you know how to use the developer console? you should see an error there.

OK I will check in there. Might try and re-install the module actually. I am running 3.5.1 also.

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

20 Apr 2022, 11:17 AM
#35
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Square WebPay support thread.

carlwhat:

the issue that @nick1973 is having is definite jquery related and/or OPC related.

he either does not have the checkout_one file i mentioned above or he is having a problem with this part of the code (from for_upload/includes/modules/pages/checkout_payment/jscript_square_webPay.php):

        if (document.querySelector("#checkoutOneSubmit")) {
            formButton = document.querySelector("#checkoutOneSubmit");
        } else {
            formButton = document.querySelector("#paymentSubmit");
        }
> 
> i do not know what version of OPC he is running nor jquery; but if the first div with an id of #checkoutOneSubmit is not there, he will have a problem.
> 
> i was thinking about adding some console information in the event of problems right here.  it has been on my mind of late.
> 
> and while i have TOTAL respect for drByte and lat9 for their contributions to this project as well as their troubleshooting abilities, i am perfectly able to provide support on a plugin that i developed and of which i am the most intimately familiar.
> 
> best.

Ok, I have re-installed the module and I am still getting the same error with OPC

I've attached screenshots for a better understanding of what is going on. Hopefully you can view them. I also have a DEBUG file from OPC, but it contains personal details I don't want to publish here. So if that file would be help to you then I'll quite happily PM it to you for DEBUGGING.

Attachment 19964Attachment 19965Attachment 19966Attachment 19967

JQUERY is 3.5.1
PHP is 7.4
OPC is on version 2.3.9
Zen Cart is 1.5.7c

I have quite a few carts that are on similar set ups, using bootstrap and OPC so this is now beginning to cause a big problem for me. It is also causing an issue for my clients that are using Square and OPC. So I'd really like to find a solution to the problem I am having with the NEW Square Module and OPC ASAP if any of you are able to help me as I am losing money and so are my clients as a result of this issue with Square. I realise that you all give your time for these kind of developments at no cost to Zen Cart Users and Front End Developers, but this is a serious issue if it won't work with OPC. Not only that, I am still getting people that don't appear to be able to make payments easily even with OPC switched off. Some seem to be getting errors when paying and are switching to Paypal to make payments because they can't process payments using their card. So my thoughts are, something still isn't quite right with this module update. Although the version I had installed previously, might be different to the one I have installed from here:

<https://www.zen-cart.com/downloads.php?do=file&id=2345>

If it is different then hopefully they won't get anymore errors when paying using the standard cart rather than OPC.

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

20 Apr 2022, 11:29 AM
#36
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Square WebPay support thread.

Nick1973:

Ok, I have re-installed the module and I am still getting the same error with OPC

I've attached screenshots for a better understanding of what is going on. Hopefully you can view them. I also have a DEBUG file from OPC, but it contains personal details I don't want to publish here. So if that file would be help to you then I'll quite happily PM it to you for DEBUGGING.

Attachment 19964Attachment 19965Attachment 19966Attachment 19967

JQUERY is 3.5.1
PHP is 7.4
OPC is on version 2.3.9
Zen Cart is 1.5.7c

I have quite a few carts that are on similar set ups, using bootstrap and OPC so this is now beginning to cause a big problem for me. It is also causing an issue for my clients that are using Square and OPC. So I'd really like to find a solution to the problem I am having with the NEW Square Module and OPC ASAP if any of you are able to help me as I am losing money and so are my clients as a result of this issue with Square. I realise that you all give your time for these kind of developments at no cost to Zen Cart Users and Front End Developers, but this is a serious issue if it won't work with OPC. Not only that, I am still getting people that don't appear to be able to make payments easily even with OPC switched off. Some seem to be getting errors when paying and are switching to Paypal to make payments because they can't process payments using their card. So my thoughts are, something still isn't quite right with this module update. Although the version I had installed previously, might be different to the one I have installed from here:

https://www.zen-cart.com/downloads.php?do=file&id=2345

If it is different then hopefully they won't get anymore errors when paying using the standard cart rather than OPC.

just done a test transaction and it appears to be working fine with the standard checkout. It hangs a little though when you confirm your order.

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

20 Apr 2022, 11:36 AM
#37
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Square WebPay support thread.

Nick1973:

Ok, I have re-installed the module and I am still getting the same error with OPC

I've attached screenshots for a better understanding of what is going on. Hopefully you can view them. I also have a DEBUG file from OPC, but it contains personal details I don't want to publish here. So if that file would be help to you then I'll quite happily PM it to you for DEBUGGING.

Attachment 19964Attachment 19965Attachment 19966Attachment 19967

JQUERY is 3.5.1
PHP is 7.4
OPC is on version 2.3.9
Zen Cart is 1.5.7c

I have quite a few carts that are on similar set ups, using bootstrap and OPC so this is now beginning to cause a big problem for me. It is also causing an issue for my clients that are using Square and OPC. So I'd really like to find a solution to the problem I am having with the NEW Square Module and OPC ASAP if any of you are able to help me as I am losing money and so are my clients as a result of this issue with Square. I realise that you all give your time for these kind of developments at no cost to Zen Cart Users and Front End Developers, but this is a serious issue if it won't work with OPC. Not only that, I am still getting people that don't appear to be able to make payments easily even with OPC switched off. Some seem to be getting errors when paying and are switching to Paypal to make payments because they can't process payments using their card. So my thoughts are, something still isn't quite right with this module update. Although the version I had installed previously, might be different to the one I have installed from here:

https://www.zen-cart.com/downloads.php?do=file&id=2345

If it is different then hopefully they won't get anymore errors when paying using the standard cart rather than OPC.

I have just seen those images might be a little blurry due to compression. So if you want me Email them to you, please ask.

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

20 Apr 2022, 2:33 PM
#38
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

Nick1973:

I have quite a few carts that are on similar set ups, using bootstrap and OPC so this is now beginning to cause a big problem for me. It is also causing an issue for my clients that are using Square and OPC. So I'd really like to find a solution to the problem I am having with the NEW Square Module and OPC ASAP if any of you are able to help me as I am losing money and so are my clients as a result of this issue with Square. I realise that you all give your time for these kind of developments at no cost to Zen Cart Users and Front End Developers, but this is a serious issue if it won't work with OPC. Not only that, I am still getting people that don't appear to be able to make payments easily even with OPC switched off. Some seem to be getting errors when paying and are switching to Paypal to make payments because they can't process payments using their card. So my thoughts are, something still isn't quite right with this module update. Although the version I had installed previously, might be different to the one I have installed from here:

nick,
if you want help, i would suggest sticking to the topic. you can save your rants for somewhere else.

there is nothing that i see in your blurry screenshots that help indicate the problem.

i went through the trouble of creating an account on your website, but it seems that you do not ship anything to your own address or some other random address in the UK.

i would need to see the storefront where this problem is happening as i am not able to reproduce it on your own site due to your configuration. i did see problems in your OPC setup. see:

https://www.dropbox.com/s/4jbyt4pan5arn4f/Screenshot%20from%202022-04-20%2007-19-01.png?dl=0

and

https://www.dropbox.com/s/cw7j5cfb45yl9dk/Screencast%20from%2004-20-2022%2007%3A15%3A27%20AM.webm?dl=0

i need to be able to get to a page that looks like this from your screenshot to help resolve this problem for you and your clients.

https://www.zen-cart.com/attachment.php?attachmentid=19966&d=1650452517

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.

20 Apr 2022, 2:56 PM
#39
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Square WebPay support thread.

carlwhat:

nick,
if you want help, i would suggest sticking to the topic. you can save your rants for somewhere else.

there is nothing that i see in your blurry screenshots that help indicate the problem.

i went through the trouble of creating an account on your website, but it seems that you do not ship anything to your own address or some other random address in the UK.

i would need to see the storefront where this problem is happening as i am not able to reproduce it on your own site due to your configuration. i did see problems in your OPC setup. see:

https://www.dropbox.com/s/4jbyt4pan5arn4f/Screenshot%20from%202022-04-20%2007-19-01.png?dl=0

and

https://www.dropbox.com/s/cw7j5cfb45yl9dk/Screencast%20from%2004-20-2022%2007%3A15%3A27%20AM.webm?dl=0

i need to be able to get to a page that looks like this from your screenshot to help resolve this problem for you and your clients.

https://www.zen-cart.com/attachment.php?attachmentid=19966&d=1650452517

best.

Carl, it is not Off Topic, I was just asking for some help!!!! It was not a rant, and to be fair it is not me that is going off topic, although you are going off topic in stating that I am having a rant lol. Anyway, end of that conversation which is going off topic because you took it the wrong way. We all want to get a solution to this issue.

You was on venturedesignandprint.co.uk

The site I am trying to fix at the moment is https://ventureengravings.uk

They are different websites. That is not your fault as I should have put that site address in my post. If you go on there and go through the ordering process OPC is now running so you can set an account up on there.

And if you read further into my posts I'd stated that I was willing to Email those screenshots, so they weren't so blurry, and the DEBUG file.

I just want an answer to the problem, then I can fix it elsewhere.

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

20 Apr 2022, 4:57 PM
#40
carlwhat avatar

carlwhat

zennedOut

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

Re: Square WebPay support thread.

Nick1973:

Carl, it is not Off Topic, I was just asking for some help!!!! It was not a rant, and to be fair it is not me that is going off topic, although you are going off topic in stating that I am having a rant lol. Anyway, end of that conversation which is going off topic because you took it the wrong way. We all want to get a solution to this issue.

You was on venturedesignandprint.co.uk

The site I am trying to fix at the moment is https://ventureengravings.uk

They are different websites. That is not your fault as I should have put that site address in my post. If you go on there and go through the ordering process OPC is now running so you can set an account up on there.

And if you read further into my posts I'd stated that I was willing to Email those screenshots, so they weren't so blurry, and the DEBUG file.

I just want an answer to the problem, then I can fix it elsewhere.

on the site you are trying to fix, i have confirmed that we are getting a response back from square. see:

https://www.dropbox.com/s/ubo8m9jjwbill9k/Screenshot%20from%202022-04-20%2009-50-25.png?dl=0

i have determined a potential problem with this file.

includes/modules/pages/checkout_payment/jscript_square_webPay.php

there is a new version of said file here for anyone who wants to test it:

https://github.com/proseLA/square_webPay/blob/master/for_upload/includes/modules/pages/checkout_payment/jscript_square_webPay.php

this problem seems to be confined to OPC.

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.