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,761

Results 721 to 740 of 835
24 Mar 2022, 8:32 AM
#721
john_large avatar

john_large

New Zenner

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

Square Payment Module for Zen Cart [Support Thread]

carlwhat:

we is me... getting closer....

https://www.dropbox.com/s/f5gux36r8eh06bx/Screencast%20from%2003-23-2022%2009%3A33%3A02%20PM.webm?dl=0

using the square WebPayments SDK along with its buyer verification token.

This is great to see, and good to see using the more streamlined card details form. Great Work, look forward to trying it :)

25 Mar 2022, 4:41 PM
#722
carlwhat avatar

carlwhat

zennedOut

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

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

guys,
just letting you know, my version looks to require php 7.4. i have only tested it on the latest version of zc 1.5.7. it may work on zc 1.5.6; but i have not tested it as of yet.

with regards to using an earlier version of php, that is also a possibility. it will require an earlier version of the SDK, which if someone wants/needs, please contact me directly.

it's getting closer.

best.

25 Mar 2022, 4:59 PM
#723
johnjlarge avatar

johnjlarge

New Zenner

Join Date:
Oct 2007
Location:
Cornwall/Amsterdam
Posts:
61
Plugin Contributions:
0

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

Is there any reason my account got banned on here? I've been helping people & posting about this plugin for years, I can't understand why that has got me banned?

20 Jul 2022, 4:32 PM
#725
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]

I have OPC 2.4.2 installed.

Just re-installed the old Square Module and made changes to checkout_payment/jscript_square.php - as documented in OPC 2.4.2 instructions.

Change ```php
if ($payment_modules->in_special_checkout() || empty($square) || !$square->enabled) { return false;}


to

```php
if ($payment_modules->in_special_checkout() || !defined(MODULE_PAYMENT_SQUARE_STATUS) || MODULE_PAYMENT_SQUARE_STATUS != 'True' || (!defined('MODULE_PAYMENT_SQUARE_APPLICATION_ID') || MODULE_PAYMENT_SQUARE_ACCESS_TOKEN == '')) {    return false;}

Run through the set up of the old module, and as far as I can see, it successfully takes the payment and records the order in the admin.

Thanks to Cindy (lat9) for recommending this change.

20 Jul 2022, 7:34 PM
#726
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]

Nick1973:

Just re-installed the old Square Module and .....You do realize that the new Square API has reached General Availability and this module is using a deprecated version?

I can't find the actual date of deprecation but, it will go Retired 12 months from deprecated.

20 Jul 2022, 8:49 PM
#727
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]

dbltoe:

You do realize that the new Square API has reached General Availability and this module is using a deprecated version?

I can't find the actual date of deprecation but, it will go Retired 12 months from deprecated.

I am aware of this, but since Cindy (lat9) appears to have given a temporary fix that makes it work again as it should, I gathered that it is possibly an option over the Square WebPay module which doesn't appear to be ready for successful use yet. Maybe in that time Square WebPay will have it's problems fixed so it can be used successfully. I have reluctantly rolled back to the old module because of the issues with Credit Card Radio Button on Square WebPay found here. https://github.com/lat9/one_page_checkout/issues/343

It says fixed, but I have installed the latest versions of Square WebPay and OPC and the issue still exists...unless I am missing something?

OPC downloaded from here - https://www.zen-cart.com/downloads.php?do=file&id=2095

Square WebPay downloaded from here - https://www.zen-cart.com/downloads.php?do=file&id=2345

20 Jul 2022, 8:54 PM
#728
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]

Working on this one at 890 sales so far this month.
** image didn't come through**
Projected 94,000 in sales for July

Wouldn't want to get that shut down

20 Jul 2022, 8:58 PM
#729
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]

dbltoe:

Working on this one at 890 sales so far this month.
** image didn't come through**
Projected 94,000 in sales for July

Wouldn't want to get that shut down

I don't know what the image was as it didn't come through. So are you currently using the OLD Square Module?

20 Jul 2022, 9:29 PM
#730
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]

Wad just a graph of Monthly sales for July so far. 893 sales so far this month @ an average $70 per 0rder with WebPay and OPC.

20 Jul 2022, 9:32 PM
#731
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]

dbltoe:

Wad just a graph of Monthly sales for July so far. 893 sales so far this month @ an average $70 per 0rder with WebPay and OPC.

Ok well I have sent you a Private Message Reply anyway.

21 Jul 2022, 8:22 PM
#732
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]

Just had this through from Square:

Hi there,

We wanted to inform you that the SqPaymentForm JavaScript library retirement has been extended to 2022-10-31 and its functionality will be shut off after this date. Additionally new applications will not be allowed to use SqPaymentForm from 2022-07-21.

SqPaymentForm has been deprecated since 2021-05-13 and replaced by Web Payments SDK. We encourage you to migrate as soon as possible by following this step-by-step migration guide.

Check out the Web Payments SDK documentation and technical reference to get started today.

If you have any questions, drop us a note in our Developer Forums.

Thank you,

The Square Developer Team


So at least for now, until the Square WebPay issues are sorted out, the old module will work until 31st October 2022

25 Jul 2022, 5:55 AM
#733
todoonada avatar

todoonada

Zen Follower

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

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

From time to time I get this error by mail when a customer wants to pay by Square:

Error Dump: stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[code] => VALUE_EMPTY
[detail] => Field must not be blank
[field] => source_id
[category] => INVALID_REQUEST_ERROR
)

        [1] => stdClass Object
            (
                [code] => VALUE_EMPTY
                [detail] => Field must not be blank
                [field] => idempotency_key
                [category] => INVALID_REQUEST_ERROR
            )


        [2] => stdClass Object
            (
                [code] => MISSING_REQUIRED_PARAMETER
                [detail] => Field must be set
                [field] => amount_money
                [category] => INVALID_REQUEST_ERROR
            )


    )

)

I can nor replicate this error when I test.
Has anybody any idea why this error occurs?

I use Zen Cart 1.5.6c.
Square Payments Module 1.5
[designed for API: 3.20200528.1]
[using SDK: Square-Connect-PHP/3.20200528.1]

15 Sep 2022, 7:46 PM
#734
coltsaa avatar

coltsaa

New Zenner

Join Date:
Aug 2016
Location:
Georgia USA
Posts:
37
Plugin Contributions:
0

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

May not be the thread i should be posting on but it's the closest thing i could find.
installed the new Square mod 2 days ago and haven't stopped trying to get it to work yet... never used square before. account is setup correct. mode installed perfectly. go to test and i have NO payment button?? or anything else that looks like a way to choose square? Where's the button?!?!? mountaingratitudedinner.org v1.5.6c. One Note, i was using PayPal and have turned it off, removed it, trashed it just got rid of it because i didn't like that it required a PP login be created even for a guest check-in.

thanks in advance
Colt

15 Sep 2022, 9:33 PM
#735
carlwhat avatar

carlwhat

zennedOut

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

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

ColtSAA:

May not be the thread i should be posting on but it's the closest thing i could find.
installed the new Square mod 2 days ago and haven't stopped trying to get it to work yet... never used square before. account is setup correct. mode installed perfectly. go to test and i have NO payment button?? or anything else that looks like a way to choose square? Where's the button?!?!? mountaingratitudedinner.org v1.5.6c. One Note, i was using PayPal and have turned it off, removed it, trashed it just got rid of it because i didn't like that it required a PP login be created even for a guest check-in.

thanks in advance
Colt

a standard v156c install has a 3 step checkout process. you can see the header code here:

https://github.com/zencart/zencart/blob/e60c81b6dbac7b1a61fb891397fe20de7b02c623/includes/languages/english/checkout_payment.php#L13

when i go to your site and try and check out i see this:

Step 2 of 4 - Payment Information

the square module relies on the paymentSubmit button which has a specific id.

you page does not have that button. why i can not say. but it is not there. and your install is not a standard install.

the new square module tells you that information in the console of the dev tools. see my screen shot here:

https://www.dropbox.com/s/q8kdy6qp9wsfh6x/square_not_going_to_work.png?dl=0

without that button on that page, square will not work.

best.

4 Oct 2022, 7:16 PM
#736
pazdar avatar

pazdar

Zen Follower

Join Date:
Jan 2008
Posts:
174
Plugin Contributions:
0

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

Using ver. 1.5.7 ppatch1 I installed the new version of the square plug-in last night. Went through the square system for the codes. Double checked it. The square module does not show up under payment modules on my admin page, any ideas?

7 Nov 2022, 8:18 PM
#737
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

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

This morning a customer placed an order without problem in our cart using the Square payment module. I just discovered that as of this afternoon, the Square payment method fields appear in step 2 of checkout but no text can be entered. Thus, customers are unable to place an order. Anyone experience this or have a clue where to look for a solution.

ZC v. 1.5.5e (I am working on the upgrade but with multiple customizations it's taking a while)

7 Nov 2022, 9:18 PM
#738
carlwhat avatar

carlwhat

zennedOut

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

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

earmsby:

This morning a customer placed an order without problem in our cart using the Square payment module. I just discovered that as of this afternoon, the Square payment method fields appear in step 2 of checkout but no text can be entered. Thus, customers are unable to place an order. Anyone experience this or have a clue where to look for a solution.

ZC v. 1.5.5e (I am working on the upgrade but with multiple customizations it's taking a while)

https://developer.squareup.com/docs/web-payments/migrate#:~:text=%20it%20is%20retired%20on%20october%2031%2C%202022.

7 Nov 2022, 9:29 PM
#739
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

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

Hmmmm, seem like it took them a week to turn it off because the old square module has been working up until yesterday evening.

7 Nov 2022, 9:43 PM
#740
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

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

Aha. I see. Thanks for that.