Page 32 of 40 FirstFirst ... 223031323334 ... LastLast
Results 311 to 320 of 392
  1. #311
    Join Date
    Nov 2022
    Location
    Ontario, Canada
    Posts
    1
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    How to change the card entry form to dark mode? our website is black background and some section of the card input can not display clearly. Square told us that web pay SDK can Customize the Card Entry Form and they have as dark mode.

    Thanks.

  2. #312
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,427
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by yellx3 View Post
    How to change the card entry form to dark mode? our website is black background and some section of the card input can not display clearly. Square told us that web pay SDK can Customize the Card Entry Form and they have as dark mode.

    Thanks.
    i have not implemented a dark mode, nor do i have plans to do so.

    i certainly am available for hire to do so; feel free to PM me if interested.

    best.
    mxWorks now has premium plugins
    are you using square? have you shown any appreciation with cake on venmo or on paypal?
    called the savior by the chief bottle washer...

  3. #313
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,427
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by swguy View Post
    includes/modules/payment/square_webPay.php line 846 creates the error log:

    [15-Oct-2022 12:28:29 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Square\Models\Order::__construct(), 0 passed in /home/cust/public_html/shop/includes/modules/payment/square_webPay.php on line 846 and exactly 1 expected in /home/cust/public_html/shop/includes/modules/payment/square_webPay/square/square/src/Models/Order.php:172

    Perhaps instead of

    return new Models\Order;

    it should be

    return null;

    (This can happen in abnormal situations where the creation of all parts of the error didn't complete successfully.)
    @swguy, i am finally looking at this error.

    i think the way to solve this problem is returning an empty array. corrected code for that 1 method:

    PHP Code:
        protected function lookupOrderDetails($order_id)
            {
                global 
    $db;
                
    $sql "SELECT * from " TABLE_SQUARE_PAYMENTS " WHERE order_id = " . (int)$order_id;
                
    $order $db->Execute($sql);

                if (
    $order->EOF) {
                    return [];
                }

                
    $ids = [];
    //            foreach (['tender_id', 'transaction_id', 'payment_id', 'sq_order'] as $key) {
                
    foreach (['tender_id''transaction_id''sq_order'] as $key) {
                    if (!empty(
    $order->fields[$key])) {
                        
    $ids[] = $order->fields[$key];
                    }
                }

                
    $request = new Models\BatchRetrieveOrdersRequest($ids);

                try {
                    
    $apiResponse $this->client->getOrdersApi()->batchRetrieveOrders($request);
                    
    $response $this->processResult($apiResponse$request);
                    return 
    $response['results']->getOrders();
                } catch (\
    SquareConnect\ApiException $e) {
                    return [];
                }
            } 
    thanks for pointing it out.
    mxWorks now has premium plugins
    are you using square? have you shown any appreciation with cake on venmo or on paypal?
    called the savior by the chief bottle washer...

  4. #314
    Join Date
    Jun 2012
    Posts
    364
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    I have been using square_handler_cron.php from swguy to automatically refresh the Square token. Do I need to make any changes to it to work with Square_webPay? I can't find his code anymore to see if it has been updated. The key statements in his code are:
    Code:
      if (IS_CLI == 'VERBOSE') echo 'Starting token refresh... ' . "\n\n";
    	require DIR_WS_CLASSES . 'payment.php';
    	$module = new payment('square');
    	$square = new square;
    	$result = $square->token_refresh_check();
    	if ($result === 'failure') {
    		if (IS_CLI == 'VERBOSE') echo 'Square Token Refresh Failure. See logs.' . "\n";
      	if (IS_CLI == 'VERBOSE') echo 'Done.' . "\n\n";
    		exit(1);
    	} else {
    		if (IS_CLI == 'VERBOSE') echo $result . "\n";
    		if (IS_CLI == 'VERBOSE') echo 'Done.' . "\n\n";
    		exit(0); // returns 0 status code, which means successful
    	}
    Thank you.

  5. #315
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,973
    Plugin Contributions
    119

    Default Re: Square WebPay support thread.

    > i think the way to solve this problem is returning an empty array. corrected code for that 1 method ...

    Much obliged, sir!
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #316
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,427
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by Dave224 View Post
    I have been using square_handler_cron.php from swguy to automatically refresh the Square token. Do I need to make any changes to it to work with Square_webPay? I can't find his code anymore to see if it has been updated. The key statements in his code are:
    Code:
      if (IS_CLI == 'VERBOSE') echo 'Starting token refresh... ' . "\n\n";
    	require DIR_WS_CLASSES . 'payment.php';
    	$module = new payment('square');
    	$square = new square;
    	$result = $square->token_refresh_check();
    	if ($result === 'failure') {
    		if (IS_CLI == 'VERBOSE') echo 'Square Token Refresh Failure. See logs.' . "\n";
      	if (IS_CLI == 'VERBOSE') echo 'Done.' . "\n\n";
    		exit(1);
    	} else {
    		if (IS_CLI == 'VERBOSE') echo $result . "\n";
    		if (IS_CLI == 'VERBOSE') echo 'Done.' . "\n\n";
    		exit(0); // returns 0 status code, which means successful
    	}
    Thank you.
    dave,
    i can not say whether this handler will work. i have a feeling it will not. but i can not say.

    the latest version of my handler does verbose logging if you set $verbose to true in the handler. furthermore, i have improved the logging so that in the case of a failed refresh, the error message is much specific. in addition it can be set up as a cron job as well.

    i would look at the docs on it.

    best.
    mxWorks now has premium plugins
    are you using square? have you shown any appreciation with cake on venmo or on paypal?
    called the savior by the chief bottle washer...

  7. #317
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    26

    Default Re: Square WebPay support thread.

    Should update the version when the version is updated...

    public $moduleVersion = '1.0.2';

    public $moduleVersion = '1.0.3';

    modules/payment/square_webPay.php
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

  8. #318
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,427
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by twitchtoo View Post
    Should update the version when the version is updated...

    public $moduleVersion = '1.0.2';

    public $moduleVersion = '1.0.3';

    modules/payment/square_webPay.php
    should?

    everybody makes mistakes.

    i'm reminded of your comment here:

    https://www.zen-cart.com/showthread....99#post1389299

    and lack of any real follow up.

    so just go bugger off, unless you have anything of any real value to add.

    best.
    mxWorks now has premium plugins
    are you using square? have you shown any appreciation with cake on venmo or on paypal?
    called the savior by the chief bottle washer...

  9. #319
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,973
    Plugin Contributions
    119

    Default Re: Square WebPay support thread.

    Quote Originally Posted by Dave224 View Post
    I have been using square_handler_cron.php from swguy to automatically refresh the Square token. Do I need to make any changes to it to work with Square_webPay?
    https://docs.zen-cart.com/user/payme..._token_expiry/

    Like @carlwhat said - always check the docs!
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #320
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    302
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Thanks for the updated release... got an issue I can't resolve: I've installed and after I enter the Application Secret(OAuth) and save. When I click edit to go in and set the location. The drop down is blankName:  Screen Shot 2022-11-13 at 3.09.15 PM.jpg
Views: 57
Size:  51.2 KB

    Any suggestions on what might be causing this? I do have 2 locations set in square. The one I need to use is the MAIN location set in square.
    For domain needtoorder.com
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

 

 
Page 32 of 40 FirstFirst ... 223031323334 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  2. Square Payment Module for Zen Cart [Support Thread]
    By DrByte in forum Addon Payment Modules
    Replies: 727
    Last Post: 9 Nov 2022, 07:51 PM
  3. Square Support for SqPaymentForm ending 15th July 2022
    By brittainmark in forum Addon Payment Modules
    Replies: 1
    Last Post: 9 Apr 2022, 02:40 PM
  4. v156 Square Payments and strange request from Square
    By ianhg in forum General Questions
    Replies: 4
    Last Post: 14 Nov 2020, 11:14 AM
  5. v156 PWA, Offline support Push notifications addon [Support Thread]
    By perfumbg in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2019, 02:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR