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 301 to 320 of 835
6 Sep 2019, 11:08 PM
#301
billj avatar

billj

New Zenner

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

Square Payment Module for Zen Cart [Support Thread]

brittainmark:

Have Just received this as email from Square. A little worrying given the short notice.

Is zen cart compliant or am I going to have to stop using square for Payments?
I've had it too. See my post (8 posts above yours) after Square first announced the new API some weeks ago. It appears to have been announced some time ago, before I started using Square.
Anyway, it seems that in the UK at least, not enough people were ready so introduction of mandatory SCA has been put back for quite a while. I would think it likely that the Square-Zencart module will support the new API by then. I was going to have a look myself but like Dr. Byte, have been too busy.

7 Sep 2019, 8:12 AM
#302
brittainmark avatar

brittainmark

Totally Zenned

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

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

BillJ:

I've had it too. See my post (8 posts above yours) after Square first announced the new API some weeks ago. It appears to have been announced some time ago, before I started using Square.
Anyway, it seems that in the UK at least, not enough people were ready so introduction of mandatory SCA has been put back for quite a while. I would think it likely that the Square-Zencart module will support the new API by then. I was going to have a look myself but like Dr. Byte, have been too busy.
Sorry for the duplication. Do you know which implementation (php, jacript, ?) zen cart is using I may try and have a look myself.

9 Sep 2019, 4:26 PM
#303
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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

Hi, Does this plugin meet the new SCA regs? I see people have mentioned it but I have not seen a definitive answer. Apparently I have 5 days to comply as must be sorted by 14th Sept 2019

This from Square

Square’s Payment Form and Connect v2 APIs have been updated with everything you need to make your website or application compliant with Strong Customer Authentication (SCA) -- the new European regulation to make customer-initiated online payments more secure. SCA requires that merchants pass additional information about their customers to their payments provider with each transaction in order to reduce online fraud.

You’ll need to make updates to your integrations by September 14th, 2019, when the regulation goes into effect. Don’t wait until the last minute! If you have questions about the update process, please contact developer support.

10 Sep 2019, 8:50 AM
#306
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]

Congerman:

Does this plugin comply with the new SCA regs?
Not yet. Dr. Byte's reply to my earlier post makes that clear, I would say.
However, as mentioned the deadline has been extended because so many organisations are still not ready. That doesn't mean it doesn't need to be done but there is now time to update the module for SCA and test it properly without risking a period where it doesn't work through non-compliance.
To be fair to Dr. Byte, Square didn't put the new API online with much time to spare before the original deadline.

10 Sep 2019, 9:19 AM
#307
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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

Thank you. I will watch this space for updates

11 Sep 2019, 3:05 PM
#308
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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

Good news, This from Square Customer Services

"I have reached out to our Account Services team and have confirmed that the deadline has been pushed out from 14 September 2019 to March 2021, set by the Financial Conduct Authority. "

11 Sep 2019, 9:17 PM
#309
brittainmark avatar

brittainmark

Totally Zenned

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

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

Congerman:

Good news, This from Square Customer Services

"I have reached out to our Account Services team and have confirmed that the deadline has been pushed out from 14 September 2019 to March 2021, set by the Financial Conduct Authority. "

Do you know if this is just UK? I get a lot of sales from Europe that I would not want to loose.
I have had a quick look at the changes and they do not look too onerous. The latest Sdk has a validation field that need adding to ZenCartChargeRequest
and the jscript_square.php need changing to store the validation code. It also suggest that the billing address is supplied. Square have also added a lot of extra modules to the lates sdk I think these are for their web store offering. I could look in mor detail and suggest updates if it would help But i do not know how to properly test the code If I make any changes.

12 Sep 2019, 10:41 AM
#310
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

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

brittainmark:

Do you know if this is just UK?

Square did not say but emailing them would probably clarify for you

15 Sep 2019, 4:00 PM
#311
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

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

When receiving payments via Square, the credit card owner line is blank on the order details screen. Also, when viewing the transaction on Square, the credit card owner line is also blank. Is this the way it's supposed to work?

Attachment 18648

29 Sep 2019, 8:57 AM
#312
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

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

Congerman:

Square did not say but emailing them would probably clarify for you

Seems the PSD2 deadline that has been pushed out from 14 September 2019 to March 2021 is only for the UK.
What a mess this is.....

5 Oct 2019, 3:33 PM
#313
aethermoon avatar

aethermoon

New Zenner

Join Date:
Jul 2019
Location:
Aberdeen, WA
Posts:
1
Plugin Contributions:
0

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

DrByte:

When the module in your store Admin says "(Access Token needed)", it's because the OAuth token has NOT been successfully obtained from Square.

For the OAuth token to be obtained, the following (as documented in the installation instructions) must be in place:

a) square_handler.php must be on your server. It should be in the same directory as ipn_main_handler.php already exists.
b) the correct URL pointing to square_handler.php on your site must be entered into your Square's account OAuth Redirect URL setting.
c) click on the button to initiate the process of requesting a token. This will open a browser window to Square, and if you're not already logged in there, will ask for credentials.
d) After Square verifies the supplied credentials, it will show an almost-blank page with a small redirection message, before the window closes automatically.
e) Within 0-5 seconds after that almost-blank window closes, Square should have automatically sent a message to the OAuth Redirect URL (your square_handler.php file), which will read and validate Square's response, and update the token in your store. This happens automatically, and 99% of the time happens in less than 1 second.
f) Now refreshing your Zen Cart Admin screen will show that the "Get Token" button has disappeared, as well as the "(Access Token needed)" message.
The module is now fully functional.

Common causes of problems with this:
a) didn't upload square_handler.php
b) put square_handler.php into the wrong directory. It belongs in the "root" of your store's folders. For reference, "ipn_main_handler.php" also exists in this directory.)
c) didn't put the OAuth Redirect URL into Square's settings, or mistyped it.

Less common, but possible causes:
a) you've got URL-rewriting rules set up in .htaccess or nginx, which are disallowing square_handler.php to be reached, probably because you're redirecting those requests to some other URL/file. Fix: allow square_handler.php to accessed directly. You could clone any rules for ipn_main_handler.php for square_handler.php, as a starting point.

b) you're running on a test site using a fake/unreachable URL, according to Square's servers. Fix by using a real live website.

c) you're running behind a firewall that's got aggressive restrictions on which files are allowed to be accessed. This is simple. Just tell the firewall to allow normal port 443 access to square_handler.php .... just like any other file on a website should be able to do. Nothing special here.

I have done C, and it opens a new page that says this "Missing client by that client_id" also know that I have made sure that everything is where it is supposed to be etc. I am very new to using zencart and all things ecommerce.

29 Oct 2019, 6:30 PM
#314
brittainmark avatar

brittainmark

Totally Zenned

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

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

marton_1:

Seems the PSD2 deadline that has been pushed out from 14 September 2019 to March 2021 is only for the UK.
What a mess this is.....
Latest mail from Square suggest that there is a deadline of 31 December 2019.
Hello,
We have an important update regarding Strong Customer Authentication (SCA) and the Square Payment Form.
In order to comply with SCA, we now require that customer names be passed via the SqContact.givenName field when a SqContact is added to SqVerificationDetails. To avoid integration errors, please update your code to pass this field before 31 December 2019.
Did you know?
billingContact fields are optional—with the exception of the required givenName field. However, to reduce the chance that a buyer will be challenged, the fields should be set with as much billing contact information as your app can provide.
You can read more about this on the Square Payment Form documentation that shows how to Verify a Buyer When Using a Nonce and Verify the Buyer in a Card-on-File Charge. Let us know by contacting Developers API Support if you have any questions about implementing this important update.
You can read about Square’s support for SCA here, and if you have questions, please contact developer support.
Thanks,

The Square Team

Payments processed by Squareup Europe Ltd.
© 2019 Squareup International Ltd.
Fumbally Square, Fumbally Lane,Dublin 8, Ireland
Unsubscribe or manage your preferences

9 Dec 2019, 11:49 PM
#315
radiowave911 avatar

radiowave911

New Zenner

Join Date:
Jul 2015
Location:
Pennsylvania, United States
Posts:
11
Plugin Contributions:
0

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

I am attempting to set this payment module up on a site, but I do not see it in the payment modules menu. I downloaded the latest archive, uploaded the necessary files to the website directory (and verified they were uploaded), but still do not see the module. In searching this thread, I cam across someone else with the same issue that resolved it by adding an 'AddHandler application/...' line to their .htaccess. That line already exists in my .htaccess for my PHP version, it was applied by my webhost when I upgraded PHP a while back across my entire hosting account to 7.2.

I am running Zen Cart v1.5.6c, PHP v7.2, and Square Payments module v0.97. This is what I see when I go to Payment->Modules.

Attachment 18751

The only thing I am seeing in the debug logs even remotely related are messages pertaining to 'authorizenet_echeck' and 'linkpoint_api', nothing at all about square:

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
#1  include(/home/tim/yeworkshoppe.com/includes/languages/english/modules/payment/authorizenet_echeck.php) called at [/home/tim/yeworkshoppe.com/zcadmin/modules.php:192]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS - assumed 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS' (this will throw an Error in a future version of PHP) in /home/tim/yeworkshoppe.com/includes/languages/english/modules/payment/authorizenet_echeck.php on line 17.

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
#1  authorizenet_echeck->__construct() called at [/home/tim/yeworkshoppe.com/zcadmin/modules.php:196]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS - assumed 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS' (this will throw an Error in a future version of PHP) in /home/tim/yeworkshoppe.com/includes/modules/payment/authorizenet_echeck.php on line 75.

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
#1  authorizenet_echeck->__construct() called at [/home/tim/yeworkshoppe.com/zcadmin/modules.php:196]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_ECHECK_SORT_ORDER - assumed 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_SORT_ORDER' (this will throw an Error in a future version of PHP) in /home/tim/yeworkshoppe.com/includes/modules/payment/authorizenet_echeck.php on line 92.

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
#1  authorizenet_echeck->__construct() called at [/home/tim/yeworkshoppe.com/zcadmin/modules.php:196]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_ECHECK_ORDER_STATUS_ID - assumed 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_ORDER_STATUS_ID' (this will throw an Error in a future version of PHP) in /home/tim/yeworkshoppe.com/includes/modules/payment/authorizenet_echeck.php on line 95.

[09-Dec-2019 23:44:22 UTC] PHP Parse error:  syntax error, unexpected '[', expecting ',' or ';' in /home/tim/yeworkshoppe.com/includes/modules/payment/linkpoint_api.php on line 308

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
--> PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/tim/yeworkshoppe.com/includes/modules/payment/linkpoint_api.php on line 308.
10 Dec 2019, 12:23 AM
#316
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

radiowave911:

I am attempting to set this payment module up on a site, but I do not see it in the payment modules menu. I downloaded the latest archive, uploaded the necessary files to the website directory (and verified they were uploaded), but still do not see the module. In searching this thread, I cam across someone else with the same issue that resolved it by adding an 'AddHandler application/...' line to their .htaccess. That line already exists in my .htaccess for my PHP version, it was applied by my webhost when I upgraded PHP a while back across my entire hosting account to 7.2.

I am running Zen Cart v1.5.6c, PHP v7.2, and Square Payments module v0.97. This is what I see when I go to Payment->Modules.

Attachment 18751

The only thing I am seeing in the debug logs even remotely related are messages pertaining to 'authorizenet_echeck' and 'linkpoint_api', nothing at all about square:

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
#1 include(/home/tim/yeworkshoppe.com/includes/languages/english/modules/payment/authorizenet_echeck.php) called at [/home/tim/yeworkshoppe.com/zcadmin/modules.php:192]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS - assumed 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS' (this will throw an Error in a future version of PHP) in /home/tim/yeworkshoppe.com/includes/languages/english/modules/payment/authorizenet_echeck.php on line 17.

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
#1 authorizenet_echeck->__construct() called at [/home/tim/yeworkshoppe.com/zcadmin/modules.php:196]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS - assumed 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_STATUS' (this will throw an Error in a future version of PHP) in /home/tim/yeworkshoppe.com/includes/modules/payment/authorizenet_echeck.php on line 75.

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
#1 authorizenet_echeck->__construct() called at [/home/tim/yeworkshoppe.com/zcadmin/modules.php:196]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_ECHECK_SORT_ORDER - assumed 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_SORT_ORDER' (this will throw an Error in a future version of PHP) in /home/tim/yeworkshoppe.com/includes/modules/payment/authorizenet_echeck.php on line 92.

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
#1 authorizenet_echeck->__construct() called at [/home/tim/yeworkshoppe.com/zcadmin/modules.php:196]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_AUTHORIZENET_ECHECK_ORDER_STATUS_ID - assumed 'MODULE_PAYMENT_AUTHORIZENET_ECHECK_ORDER_STATUS_ID' (this will throw an Error in a future version of PHP) in /home/tim/yeworkshoppe.com/includes/modules/payment/authorizenet_echeck.php on line 95.

[09-Dec-2019 23:44:22 UTC] PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/tim/yeworkshoppe.com/includes/modules/payment/linkpoint_api.php on line 308

[09-Dec-2019 23:44:22 UTC] Request URI: /zcadmin/modules.php?set=payment, IP address: xxx.xxx.xxx.xxx
--> PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/tim/yeworkshoppe.com/includes/modules/payment/linkpoint_api.php on line 308.

The linkpoint_api software wasn't upgraded for the more current PHP software and in fact was not included in ZC 1.5.6. The files includes/modules/payment/linkpoint_api.php and language file associated: includes/languages/english/modules/payment/linkpoint_api.php should be removed from the loading sequence. If the remainder of the payment options do not again appear, check for additional/new mydebug logs. Obviously there are still going to be issues with authorizenet_echeck.php until those are addressed as well, but for now they are just warnings not fatal errors.
12 Dec 2019, 4:40 AM
#317
radiowave911 avatar

radiowave911

New Zenner

Join Date:
Jul 2015
Location:
Pennsylvania, United States
Posts:
11
Plugin Contributions:
0

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

Thank you. That got the module to display, now I am encountering another issue.

I went through the steps to set up an application in Square, grabbed the application sandbox ID and the application oauth secret. They were entered into the appropriate location in the configuration, and the configuration saved. There is a 'Location ID' dropdown in the configuration, however there is nothing there. Is this normal?

When I click the green bar to log in and authorize the account, I get a message from oauth2 at squareup "Missing client by that 'client_id'". In the URL, the client ID is the sandbox client ID I copied from the application. I am thinking this may be a Square issue, not an issue with the module but I am not entirely certain.

12 Dec 2019, 4:44 AM
#318
radiowave911 avatar

radiowave911

New Zenner

Join Date:
Jul 2015
Location:
Pennsylvania, United States
Posts:
11
Plugin Contributions:
0

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

I think I figured it out. For some reason, the sandbox is not working correctly to recognize the ID. I switched to the production settings, updated the application ID and the OAUTH secret, and all seems to be well now. Since this is a slow store, I need to get the cron job I read about set up to keep the tokens current. Thanks again for the help.

16 Dec 2019, 2:19 PM
#319
mvstudio avatar

mvstudio

Zen Follower

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

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

edadk:

When receiving payments via Square, the credit card owner line is blank on the order details screen. Also, when viewing the transaction on Square, the credit card owner line is also blank. Is this the way it's supposed to work?

Attachment 18648

I didn't realize this could be the reason why on my square's account all transactions say Unknown. Has anyone figure out how to add the credit card owner field to the form?

19 Dec 2019, 5:38 PM
#320
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

mvstudio:

... on my square's account all transactions say Unknown. Has anyone figure out how to add the credit card owner field to the form?
The customer's name is transmitted with the payment, but Square doesn't display it in their dashboard.

I think getting it to display requires injecting your customer into your Square account whenever a sale is made, then linking an order to that customer, and then linking the payment to that customer+order. That's gonna require a notable reworking of the Square module. It's on the radar but no date has been set for working on that yet.

I'm prepping for an update that improves other underlying components to be compatible with Square's latest updates. This update will also increase some of the data transmitted, but I don't expect it will fix the "Unknown" label you mentioned.