Zen Cart Logo
Forums / Addon Payment Modules / Square Payment Module for Zen Cart [Support Thread]

Square Payment Module for Zen Cart [Support Thread]

Sticky

Views: 366,766

Results 661 to 680 of 835
13 Dec 2021, 2:28 AM
#661
todoonada avatar

todoonada

Zen Follower

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

Square Payment Module for Zen Cart [Support Thread]

brittainmark:

Recent E-mail from square <br>
*************************<br>
<br>
Assume as long as we have correctly set up our "Redirect URL" field on square, to <a href="https://your_store_url.com/square_handler.php" target="_blank" rel="nofollow noopener">https://your_store_url.com/square_handler.php</a> including any subdirectories then all will be well.

The mail I received from Square reads differently. I wonder if anything has to be changed on Zen Cart code.
At the mail I received the redirect URI must match exactly. On the mail brittainmark received, it does not match exactly.

Current State Example
If the redirect URL in the Developer Dashboard is configured to: https://example.com/

And the redirect_uri parameter in the authorization request is: https://connect.squareup.com/oauth2/authorize?client_id=abcd-1234-zyxw&scope=PAYMENTS_READ&redirect_uri=https://example.com/oauth-redirect

Then the request succeeds because the first part of the redirect_uri parameter matches the configured redirect URL.

After February 14th, 2022, the redirect URL sent in the Authorization request must exactly match the redirect URL in the Developer Dashboard or it will error.

Exact Match Example
If the redirect_uri parameter in the authorization request is:
https://connect.squareup.com/oauth2/authorize?client_id=abcd-1234-zyxw&scope=PAYMENTS_READ&redirect_uri=https://example.com/oauth-redirect

Then the redirect URl in the Developer Dashboard must be configured to:
https://connect.squareup.com/oauth2/authorize?client_id=abcd-1234-zyxw&scope=PAYMENTS_READ&redirect_uri=https://example.com/oauth-redirect

13 Dec 2021, 3:11 PM
#662
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: Square Payment Module for Zen Cart [Support Thread]

mvstudio:

Ha! And here I thought my idea would be frowned upon! :D What would you need from me to get this patch sorted out?... Thanks!

Anyone knows of a temporary fix I could implement? I need either the square module or the payment page to refresh after error. Also let me know where to donate/pay. Thank you!

17 Dec 2021, 1:40 AM
#663
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

By bypassing the sandbox page and going directly to the production page, I managed to get four of our six ZenCart sites to accept the application IDs and access tokens, though I kept having to experiment with the access tokens on the credentials page and the OAuth page. Some sites accepted one code, and the other sites insisted on using the other code.

I'm still having problems with two of the sites, though. One of them (https://www.timelesserotica.com) won't accept either access token, and when I click the button to authorize the account, it gives me an error message that says the page isn't working; it's currently unable to handle this request; http error 500.

The sixth site (https://www.alanachurch.com) is even more baffling. I've uploaded the square_handler.php file and the new' includes' folder multiple times and verified that they're there in the right place, but ZenCart's payment modules page refuses to show Square as a payment option.

Added to that, none of the sites will actually process a transaction. When I get to the Payment Information page, it highlights the Credit Card option, but all the fill-in fields are missing (card number, cvv number, expiry date, and postal code). https://www.book-oasis.com is a perfect example. I selected a book, logged in, and tried to purchase the book using a real credit card. I can't because the credit card fields are missing.

Square flatly refuses to help, and said I had to talk to you. Can someone please help me?? We're rather desperate to change these sites away from Paypal, and need to get your Square module up and running asap. Thank you!

29 Dec 2021, 4:30 AM
#664
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

Someone? Anyone? Please??

29 Dec 2021, 2:24 PM
#665
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,732
Plugin Contributions:
14

Re: Square Payment Module for Zen Cart [Support Thread]

DK_Scully:

Someone? Anyone? Please??

First check and I can see SSL is not forced. I am able to navigate the site in non SSL - http not https. If you add the basic SSL statements to your .htaccess and set Zen Cart to force https: while it's running - the first requirement of the Square code will be followed and we can troubleshoot from there.

If you would like my help I'll need access and you're welcome to email me directly - twitchtoo at gmail dot com.

29 Dec 2021, 9:51 PM
#666
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

Twitch:

Thank you very much for your reply. The server does have SSL activated, but I don't know what statements need to be added to which .htaccess files. So yes, I could definitely use your help doing that. I appreciate it!

Jo

30 Dec 2021, 12:28 PM
#667
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,732
Plugin Contributions:
14

Re: Square Payment Module for Zen Cart [Support Thread]

DK_Scully:

Twitch:

Thank you very much for your reply. The server does have SSL activated, but I don't know what statements need to be added to which .htaccess files. So yes, I could definitely use your help doing that. I appreciate it!

Jo

PM'd you.

13 Jan 2022, 1:25 PM
#668
chuckphillips avatar

chuckphillips

Zen Follower

Join Date:
Sep 2012
Location:
Upstate South Carolina
Posts:
106
Plugin Contributions:
1

Re: Square Payment Module for Zen Cart [Support Thread]

zc1.56c, php 7.4, Bootstrap, Square Plugin 1.5

We have started using Square for payment processing. Our customer directory (in Square Admin) does not populate correctly. Instead, we see "Unknown Customer" for all customers. No other data.

I asked Square support and they said that our integration needs to make use of the Square Customer's API. Is that the case? Or perhaps some other problem? Curious what other Square users are seeing.

14 Jan 2022, 2:55 AM
#669
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Square Payment Module for Zen Cart [Support Thread]

Since that is a report from your actual Square account, is there a problem on your site with names, dates, amounts, etc?

I don't know of a problem with 1.5.6c and PHP 7.4. I'm also not sure if the bootstrap mod for One Page Checkout will work with 1.5.6c

First get Zen Cart showing and collecting the correct data, then make sure you are up to date with the Square Web Apps.

14 Jan 2022, 12:36 PM
#670
chuckphillips avatar

chuckphillips

Zen Follower

Join Date:
Sep 2012
Location:
Upstate South Carolina
Posts:
106
Plugin Contributions:
1

Re: Square Payment Module for Zen Cart [Support Thread]

There's no problem on the site with names, dates etc.
The square transactions complete without issue. Nothing in the error logs.
We don't use OPC.
Were using the latest Square API.

Everything works fine - just the customer data does not populate correctly. Its filling up with garbage data "unknown customer".

Curious if any other Square users are seeing the same thing.

16 Feb 2022, 11:42 PM
#671
royaldave avatar

royaldave

Zen Follower

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

Re: Square Payment Module for Zen Cart [Support Thread]

Afterpay can now be integrated into square.

https://developer.squareup.com/blog/afterpay-buy-now-pay-later-now-available/

Any comments on this article - is this code easy to add, or will someone be updating the square module to include this?

4 Mar 2022, 9:04 AM
#672
nick1973 avatar

nick1973

Totally Zenned

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

Re: Square Payment Module for Zen Cart [Support Thread]

Hi I have just received this email. Does this affect the SquareUp Payment Module please?

We wanted to remind you that the SqPaymentForm JavaScript library will be retired on 21/07/2022 and its functionality will be shut off. SqPaymentForm has been replaced by the Web Payments SDK and we encourage you to migrate as soon as possible by following this step-by-step migration guide.

Here's why we think you'll love Web Payments SDK:

• It's a Javascript SDK that enables a fully customizable, highly responsive online payment experience.
• It supports all kinds of payment methods like cards, digital wallets, and more to come.
• It's tried and tested by our own internal developers and powers first-party products like Square Online.

Watch this Sandbox 101: Web Payments SDK video to see how it works. If you have any questions, drop us a note in our Developer Forums or Slack, or contact our Developer Support.

Thank you,

The Square Developer Team

4 Mar 2022, 9:16 AM
#673
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: Square Payment Module for Zen Cart [Support Thread]

To drag up an earlier thread about adding SCA support,

RocketSites:

With the assistance of @Congerman, I have made some changes to the Square module with a view to achieving SCA compliance.

The following is ready for TESTING - use AT YOUR OWN RISK. Replace these two core files with those included in the archive:

/includes/modules/pages/checkout_payment/jscript_square.php
/includes/modules/payment/square.php

No need to un-install and then re-install the module in admin, as there are no DB changes.

https://www.rocketsites.co.uk/square.zip
I'd be very interested in looking over this solution as we are seeing increasing "requires verification" failures from Square as the number of cards requiring 3DS/SCA increases. However, the original file is no longer at the above URL. Are you able to make it available again please, RocketSites, or does someone else have a copy they can post?

4 Mar 2022, 9:33 AM
#674
nick1973 avatar

nick1973

Totally Zenned

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

Re: Square Payment Module for Zen Cart [Support Thread]

BillJ:

To drag up an earlier thread about adding SCA support,

I'd be very interested in looking over this solution as we are seeing increasing "requires verification" failures from Square as the number of cards requiring 3DS/SCA increases. However, the original file is no longer at the above URL. Are you able to make it available again please, RocketSites, or does someone else have a copy they can post?

I've got a few websites that are using square, so if this isn't compliant, I also need a solution ASAP.

4 Mar 2022, 10:44 AM
#675
brittainmark avatar

brittainmark

Totally Zenned

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

Re: Square Payment Module for Zen Cart [Support Thread]

I have updated the square sca fix it is available at https://inner-light.co.uk/SquareSCA.zip

4 Mar 2022, 10:51 AM
#676
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: Square Payment Module for Zen Cart [Support Thread]

Thank you very much, brittainmark!
I've downloaded it now.

4 Mar 2022, 4:15 PM
#677
john_large avatar

john_large

New Zenner

Join Date:
Oct 2015
Location:
Cornwall, UK
Posts:
41
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

brittainmark:

I have updated the square sca fix it is available at https://inner-light.co.uk/SquareSCA.zip

I've updated to this version as I was already using your previous fix from a while ago. I compared the two files & saw quite a few changes compared to the last zip you released. Has there been significant change to the files? Anything I should keep a look out for?

Thanks as always for keeping this plugin functional. Its a life saver compared to paypal.

4 Mar 2022, 6:10 PM
#678
brittainmark avatar

brittainmark

Totally Zenned

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

Re: Square Payment Module for Zen Cart [Support Thread]

The issue was that if the card was invalid, it did not show the error message, just highlighted in red the field that was wrong. That has been corrected. The previous fix was @rocketsites. I also change the loction id so that it is obtained from the class and made it produce a warning if the location was not set. This was causing problems with people who did not have the location id set up correctly. I have not sent it to the main zen cart site as in 5 months the current way of working using sqPaymentForm is being depreciated by SQUARE. Hopefully I will have enough time and knowledge to rewrite it to work with the Web Payment Sdk. So if I can get that done I will release that version to the Main zen cart site and if necessary produce a new zip file (it will be big as the vendors>square files will need to be replaced)

Hope that answers the question.

4 Mar 2022, 10:50 PM
#679
john_large avatar

john_large

New Zenner

Join Date:
Oct 2015
Location:
Cornwall, UK
Posts:
41
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

brittainmark:

The issue was that if the card was invalid, it did not show the error message, just highlighted in red the field that was wrong. That has been corrected. The previous fix was @rocketsites. I also change the loction id so that it is obtained from the class and made it produce a warning if the location was not set. This was causing problems with people who did not have the location id set up correctly. I have not sent it to the main zen cart site as in 5 months the current way of working using sqPaymentForm is being depreciated by SQUARE. Hopefully I will have enough time and knowledge to rewrite it to work with the Web Payment Sdk. So if I can get that done I will release that version to the Main zen cart site and if necessary produce a new zip file (it will be big as the vendors>square files will need to be replaced)

Hope that answers the question.

Thanks for the clarification & also the work on the plugin. Does that mean that todays announcement from Square that SqPaymentForm will be retired will render the current plugin broken? It would be such a shame if the square integration ended as it has been absolutely great for our zen cart store & isn't something we would have tried had it not been bundled with more recent Zen Cart releases. We used to rely solely on paypal, but the ability to take card payments directly on the site with such ease has been a real improvemnt for our customers.

5 Mar 2022, 9:01 AM
#680
john_large avatar

john_large

New Zenner

Join Date:
Oct 2015
Location:
Cornwall, UK
Posts:
41
Plugin Contributions:
0

Re: Square Payment Module for Zen Cart [Support Thread]

brittainmark:

The issue was that if the card was invalid, it did not show the error message, just highlighted in red the field that was wrong. That has been corrected. The previous fix was @rocketsites. I also change the loction id so that it is obtained from the class and made it produce a warning if the location was not set. This was causing problems with people who did not have the location id set up correctly. I have not sent it to the main zen cart site as in 5 months the current way of working using sqPaymentForm is being depreciated by SQUARE. Hopefully I will have enough time and knowledge to rewrite it to work with the Web Payment Sdk. So if I can get that done I will release that version to the Main zen cart site and if necessary produce a new zip file (it will be big as the vendors>square files will need to be replaced)

Hope that answers the question.

Updated the files, but now if I try to put through a sale using my own card, not in sandbox but on the live site, it declines & doesn;t show me the SCA popup it used to. Now getting this error on checkout payment

(SQ-ERR) Your transaction could not be completed because of an error: [CARD_DECLINED_VERIFICATION_REQUIRED: Authorization error: 'CARD_DECLINED_VERIFICATION_REQUIRED']

Any ideas?