Page 39 of 48 FirstFirst ... 293738394041 ... LastLast
Results 381 to 390 of 478
  1. #381
    Join Date
    Mar 2016
    Location
    Norcatur, Kansas, USA
    Posts
    80
    Plugin Contributions
    3

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

    Ah, good. I see you fixed the above bug in the 1.0 release. And, I'm proud of myself for devising the correct fix!

  2. #382
    Join Date
    Jan 2004
    Posts
    65,414
    Blog Entries
    7
    Plugin Contributions
    232

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

    Hmmm. I wonder if the same issue exists on line 677 (of the 1.0 file, not the beta).
    And if it does, I think the "fix" requires also calling setApiClient instead of setSquareConfig:

    Code:
            $this->setApiClient();
            $oauthApi = new SquareConnect\Api\OAuthApi($this->_apiConnection);
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #383
    Join Date
    Aug 2013
    Location
    Perth, WA
    Posts
    110
    Plugin Contributions
    0

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

    Quote Originally Posted by twitchtoo View Post
    I wonder if we need to add a script to disable the button after one click. Historically on sites where this has been enabled, folks still find a way to refresh or go back and forward (because they are impatient or have super high speed connections) and the problem repeats of 'double clicking the send request'.

    Also, this error will display when there is a javascript interfering as mentioned previously - see post #364 in this thread:
    https://www.zen-cart.com/showthread....55#post1366255
    I've had a couple more "double payments" since originally posting. Does anyone else experience this ?

  4. #384
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,177
    Plugin Contributions
    0

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

    156c
    PHP Version: 7.2.29
    Upgraded from 155f

    Last night I received a debug log file while accessing my Administration Panel.
    I had to log into square for a Access Token request.
    No biggie, but why am I not receiving an email when from the module itself when under the Log Mode I have this box checked? Log on Failures and Email on Failures
    I do not see anywhere under the Edit of this module to submit my email address so upon this error last night I would have received an email.

  5. #385
    Join Date
    Apr 2008
    Posts
    377
    Plugin Contributions
    1

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

    Hello,
    I'm running into this error log

    [06-Apr-2020 12:42:49 America/Detroit] Request URI: /ADMIN/orders.php?selected_box=customers&status=1&page=1&oID=XXXXXXXXXXX&action=doCaptu re, IP address: XXXXXXXXXXX
    #1 zen_update_orders_history() called at [/includes/modules/payment/square.php:1179]
    #2 square->_doCapt() called at [/ADMIN/orders.php:308]
    --> PHP Warning: Invalid argument supplied for foreach() in /includes/functions/functions_osh_update.php on line 207.

    Any idea what's happening?

  6. #386
    Join Date
    Jul 2012
    Posts
    15,131
    Plugin Contributions
    17

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

    Quote Originally Posted by mvstudio View Post
    Hello,
    I'm running into this error log

    [06-Apr-2020 12:42:49 America/Detroit] Request URI: /ADMIN/orders.php?selected_box=customers&status=1&page=1&oID=XXXXXXXXXXX&action=doCaptu re, IP address: XXXXXXXXXXX
    #1 zen_update_orders_history() called at [/includes/modules/payment/square.php:1179]
    #2 square->_doCapt() called at [/ADMIN/orders.php:308]
    --> PHP Warning: Invalid argument supplied for foreach() in /includes/functions/functions_osh_update.php on line 207.

    Any idea what's happening?
    Any idea what modified includes/functions/functions_osh_update.php away from the ZC installed version? There aren't even 200 lines in the original file...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  7. #387
    Join Date
    Apr 2008
    Posts
    377
    Plugin Contributions
    1

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

    Quote Originally Posted by mc12345678 View Post
    Any idea what modified includes/functions/functions_osh_update.php away from the ZC installed version? There aren't even 200 lines in the original file...
    I haven't modified that file. Is there any known plugin that could create that kind of issue?

    Correction! Yes, there is a plugin that makes modifications to that file, TY Tracker. But I've never had that happen before. Weird.
    Last edited by mvstudio; 7 Apr 2020 at 04:02 AM.

  8. #388
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    7,523
    Plugin Contributions
    8

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

    PHP 7.2 is causing an error in line 1110 of includes/modules/payment/square.php.
    Code:
    [07-Apr-2020 17:35:49 UTC] Request URI: /Ud;reW/orders.php?origin=index&page=1&oID=1718&action=doRefund, IP address: 123.231.145.199#1  square->_doRefund() called at [/home/allpecans/public_html/Ud;reW/orders.php:254]
    --> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/Ud;reW/public_html/includes/modules/payment/square.php on line 1110.
    Am I correct in assuming (I know) that
    Code:
            if (count($errors_object)) {            $error = $this->parse_error_response($errors_object);
                $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_UPDATE_FAILED . ' [' . $error['detail'] . ']', 'error');
    
    
                return false;
            }
    should be
    Code:
            if (empty($errors_object) && is_array($errors_object)) {            $error = $this->parse_error_response($errors_object);
                $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_UPDATE_FAILED . ' [' . $error['detail'] . ']', 'error');
    
    
                return false;
            }
    Did you read the posting tips?!?
    Responsive Color Changes for 155-156c demo here.
    Zen Cart PCI Compatible Hosting

  9. #389
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    1,943
    Plugin Contributions
    1

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

    Square v1.0 is causing problems so I need to turn it OFF/False and resort to using Auth.net AIM

    In admin payment modules, select Square.
    Edit and Remove buttons appear on the right side of the screen along with all the settings just below that.
    Click Edit so that I can change the ENABLE SQUARE MODULE from true to false
    The right column just turns to blank white space. No debug file generated.
    Thus, Square cannot be disabled, edited, nothing.

    The only thing that I know has been done since Square functionality was verified is install OPC 2.3.0 and EditOrders 4.5

    TNX for helping
    Rick
    ChainWeavers (dot) com

  10. #390
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,618
    Plugin Contributions
    5

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

    Quote Originally Posted by dbltoe View Post
    PHP 7.2 is causing an error in line 1110 of includes/modules/payment/square.php.
    Code:
    [07-Apr-2020 17:35:49 UTC] Request URI: /Ud;reW/orders.php?origin=index&page=1&oID=1718&action=doRefund, IP address: 123.231.145.199#1  square->_doRefund() called at [/home/allpecans/public_html/Ud;reW/orders.php:254]
    --> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/Ud;reW/public_html/includes/modules/payment/square.php on line 1110.
    Am I correct in assuming (I know) that
    Code:
            if (count($errors_object)) {            $error = $this->parse_error_response($errors_object);
                $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_UPDATE_FAILED . ' [' . $error['detail'] . ']', 'error');
    
    
                return false;
            }
    should be
    Code:
            if (empty($errors_object) && is_array($errors_object)) {            $error = $this->parse_error_response($errors_object);
                $messageStack->add_session(MODULE_PAYMENT_SQUARE_TEXT_UPDATE_FAILED . ' [' . $error['detail'] . ']', 'error');
    
    
                return false;
            }
    • your code changes are NOT from line 1110. what makes you think those changes will work? and more importantly that is where the problem is?
    • i'm guessing that you are using v155? as line 1110 on v156 is commented out.
    • i do not think the change you have listed will help. i think the issue starts at line 333.
    • i would try and figure out why you have an exception there as opposed to fixing the code. that part of the code looks unchanged to zc156.
    • while i used to be a fan of quick fixes like you are showing here (not that i think you are fixing in the right place); i think vars should be properly initiated as opposed to checking them everytime you are using them. in this situation, its tricky as i'm not sure what the square response is (i do not use the module.)


    i hope that helps.
    practice #socialdistancing #staysafe
    email is hard....
    help out with the green....

 

 
Page 39 of 48 FirstFirst ... 293738394041 ... LastLast

Similar Threads

  1. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 125
    Last Post: 28 Jun 2019, 02:15 AM
  2. v154 Support Thread: AddToAny for Zen Cart (The Universal Sharing Platform)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 8 Apr 2019, 02:39 PM
  3. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 107
    Last Post: 13 Jan 2019, 12:32 PM
  4. Layaway Payment Module Support Thread
    By Danielle in forum Addon Payment Modules
    Replies: 32
    Last Post: 4 Nov 2012, 08:01 AM

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