Re: Square WebPay support thread.
Quote:
Originally Posted by
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
who knew? i'm working on an alternative...
thanks for your support.
best.
Re: Square WebPay support thread.
Quote:
Originally Posted by
Nick1973
Yeah got it working without OPC, so something going wrong with it with OPC. Not sure what but looks like a Jquery issue or something. I've even tried it with the latest OPC and get the same issue.
I wonder if lat9 (Cindy) can help?
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.
Re: Square WebPay support thread.
Quote:
Originally Posted by
johnjlarge
So I sorted my alignment issue if anyone is interested or has a similar issue. I added a new rule to stylesheet.css with the following & that seems to fill the available space with the payment input form nicely.
Code:
.ccinfo {
display: grid;
}
glad you got that figured out.
Re: Square WebPay support thread.
So why not have built it on Square PHP SDK 16.0.0.20211117 or 17.0.0.20211215 which are the last ones that list PHP 7.1+?
Re: Square WebPay support thread.
Quote:
Originally Posted by
Nick1973
Yeah got it working without OPC, so something going wrong with it with OPC. Not sure what but looks like a Jquery issue or something. I've even tried it with the latest OPC and get the same issue.
I wonder if lat9 (Cindy) can help?
If there's a jscript_ module that's included in the /includes/modules/pages/checkout_payment page, that needs to be copied to /includes/modules/pages/checkout_one.
Re: Square WebPay support thread.
Quote:
Originally Posted by
lat9
If there's a jscript_ module that's included in the /includes/modules/pages/checkout_payment page, that needs to be copied to /includes/modules/pages/checkout_one.
while that may work, i'm not really sure why you would say that.
there is a file in the checkout_one directory, that is available for anyone to see by downloading the zip, it's contents are:
PHP Code:
<?php
/**
* developed, copyrighted and brought to you by @proseLA (github)
* https://mxworks.cc
* copyright 2022 proseLA
*
* some portions of code may be copyrighted and licensed by www.zen-cart.com
*
* Code is licensed under the MIT license.
*
* Javascript for Square WebPay module
* specifically for One Page Checkout
*
* 04/2022 project: square_webPay v1.0.0 file: jscript_square_webPay.php
*/
if (!file_exists($squareWebPay_jscript = DIR_FS_CATALOG . DIR_WS_MODULES . 'pages/checkout_payment/jscript_square_webPay.php')) {
return false;
}
require $squareWebPay_jscript;
both files need to be there.
the idea to only have 1 file to maintain was yours, so i'm unclear why you would recommend doing something different on this board.
Re: Square WebPay support thread.
Quote:
Originally Posted by
barco57
So why not have built it on Square PHP SDK 16.0.0.20211117 or 17.0.0.20211215 which are the last ones that list PHP 7.1+?
because php 7.1 was end of life in 2019.
Re: Square WebPay support thread.
Quote:
Originally Posted by
carlwhat
while that may work, i'm not really sure why you would say that.
there is a file in the checkout_one directory, that is available for anyone to see by downloading the zip, it's contents are:
PHP Code:
<?php
/**
* developed, copyrighted and brought to you by @proseLA (github)
* https://mxworks.cc
* copyright 2022 proseLA
*
* some portions of code may be copyrighted and licensed by www.zen-cart.com
*
* Code is licensed under the MIT license.
*
* Javascript for Square WebPay module
* specifically for One Page Checkout
*
* 04/2022 project: square_webPay v1.0.0 file: jscript_square_webPay.php
*/
if (!file_exists($squareWebPay_jscript = DIR_FS_CATALOG . DIR_WS_MODULES . 'pages/checkout_payment/jscript_square_webPay.php')) {
return false;
}
require $squareWebPay_jscript;
both files need to be there.
the idea to only have 1 file to maintain was yours, so i'm unclear why you would recommend doing something different on this board.
I was giving a 'generic' response, since I didn't download the payment method files. Sorry.
Re: Square WebPay support thread.
> So why not have built it on Square PHP SDK 16.0.0.20211117 or 17.0.0.20211215 which are the last ones that list PHP 7.1+?
Quote:
Originally Posted by
carlwhat
because php 7.1 was end of life in 2019.
... and because the latest SDKs have fixed bugs from older versions.
You would NEVER build on an old SDK just because some people haven't updated their sites - that makes no sense at all.
People who are staying up to date should not be penalized just because others aren't staying up to date.
Re: Square WebPay support thread.
Quote:
Originally Posted by
Nick1973
Yeah got it working without OPC, so something going wrong with it with OPC. Not sure what but looks like a Jquery issue or something. I've even tried it with the latest OPC and get the same issue.
I wonder if lat9 (Cindy) can help?
As stated in my post above, it is working just fine with the items shown in https://www.zen-cart.com/showthread....92#post1387592