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 Code:
if ($payment_modules->in_special_checkout() || empty($square) || !$square->enabled) { return false;}
to
PHP Code:
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.
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
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.
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
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
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
https://www.zen-cart.com/image/png;b...AAAElFTkSuQmCC
Wouldn't want to get that shut down
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
dbltoe
I don't know what the image was as it didn't come through. So are you currently using the OLD Square Module?
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.
Re: Square Payment Module for Zen Cart [Support Thread]
Quote:
Originally Posted by
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.
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
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]
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