Page 40 of 76 FirstFirst ... 30383940414250 ... LastLast
Results 391 to 400 of 753
  1. #391
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,320
    Plugin Contributions
    11

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

    Those files are from the latest download of the plugin which is newer than the release of 1.5.6c

    We have had dual problems with Square. First, Square updated the API in late March.

    Second, The latest download for Square is WAY different (over 100) than stock 1.5.6c

  2. #392
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,748
    Plugin Contributions
    11

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

    Quote Originally Posted by dbltoe View Post
    Those files are from the latest download of the plugin which is newer than the release of 1.5.6c

    We have had dual problems with Square. First, Square updated the API in late March.

    Second, The latest download for Square is WAY different (over 100) than stock 1.5.6c
    i would still find out what is in $errors_object first before modifying the code.

    in addition, looking at v157, if you have logging turned on, there should be a log file that can tell you exactly what the problem is. it looks like you are doing a refund. correct? what does the log say about the refund?

    again, i have not used square before, but i know refunds are tricky. was the transaction settled? does square do voids (the function exists there).

    i suppose you could look make this change that you are talking about. you are already at the end of the function, and this is just adding the error to the messageStack. but the error is not in the expected format. why? the log file can give you an indication...

    hope that helps.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #393
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

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

    [QUOTE=dbltoe;1367411]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.
    Just removed and reinstalled SQUARE 1.0.
    1. Resolved my editing issue above.

    2. Receive the EXACT same myDEBUG file when refunded the 1st test transaction.

    AFAIK, Square does not do voids. Transaction was refunded within a minute of being authorized and captured.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  4. #394
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,320
    Plugin Contributions
    11

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

    Are we starting to channel RodG or are you still upset about RixStix not including you in the "Good Guy List"?

    PHP states that ANY use of count() with 7.2 will generate the warning listed. At https://www.php.net/manual/en/function.count.php you will need to scroll down to Change Log to see their statement.

    I did not say there was any error in operation of the cart.
    PHP 7.2 is causing an error in line 1110 of includes/modules/payment/square.php.
    Maybe I should have said warning.

    I simply wanted to know if the replacement code was correct in order to stop the warning, which stops the customer from texting, which stops me from having to spend time on a warning, which causes me to...............................

  5. #395
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,748
    Plugin Contributions
    11

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

    again, where is the log file?

    the process that you just talked about, would be a void. there is a _doVoid function in the square payment class.

    my guess is that you are trying to refund a transaction that has not been settled and your only option is to void it. but the square log file would tell you that.

    now why the square class allows you to refund this transaction is a different story. but i'm guessing that is where the problem is.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #396
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,320
    Plugin Contributions
    11

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

    Used a tester that says the code is correct, so I'll just take my mole hill on down the road.

  7. #397
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,748
    Plugin Contributions
    11

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

    Quote Originally Posted by dbltoe View Post
    Are we starting to channel RodG or are you still upset about RixStix not including you in the "Good Guy List"?

    PHP states that ANY use of count() with 7.2 will generate the warning listed. At https://www.php.net/manual/en/function.count.php you will need to scroll down to Change Log to see their statement.

    I did not say there was any error in operation of the cart. Maybe I should have said warning.

    I simply wanted to know if the replacement code was correct in order to stop the warning, which stops the customer from texting, which stops me from having to spend time on a warning, which causes me to...............................
    last time, and i'm really done....

    i am not at all upset. at all... the only thing that makes me upset is a comparison to rodG....

    i'm just trying to help with the code. that is all....

    WARNINGS will eventually turn to ERRORS which is a good reason to address them now; prior to a newer version of php which will say they are errors.

    if the refund succeeded without problem, i do not understand the code. my concern is to help with the code.... and to not be compared to.... others.... that is all...

    your code will address that problem, but if the result of return errors is NOT either an EMPTY array or a filled ARRAY (lines 1100 or 1104) the code needs to be fixed. IMO.

    now get back out there and #stayathome.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #398
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,270
    Plugin Contributions
    1

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

    New v1.1 of this mod just released

    https://www.zen-cart.com/downloads.php?do=file&id=156
    Simon

  9. #399
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,320
    Plugin Contributions
    11

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

    Couple of things not addressed or gone over a little lightly in either readme

    This addresses UPGRADES

    Up until just a couple of days ago, Square defaulted to sandbox when you entered your app. You could really get lost if you did not see that. Our current pages from Square show that they have defaulted to Production which should help. Just think the lack of sandbox for ZC should be more than line 129 in the MD

    Couldn't find information in either readme regarding the changing of the API version for existing apps (some have not updated since their original creation. The latest version is 2020-03-25. The files with this new ZC version imply that this is the version needed for 1.1 to work. Version 1.0 API files listed 2020-02-26 yet nothing in the docs mentioned whether the user had to upgrade the API in square. We had several customers who were having problems that wound up being old API versions. It appears that 1.0 needed 2020-02-26. Nothing in the docs would have notified the user to change from an older version.

    Since the API setting is "below the fold" on the app's landing page, it looks like most may have missed this.

    Also, since the 2020-03-25 marks the start of Square's V2 of the API, I fear that only the new installs will work as most of the old installs will have an outdated API version.


    BOTTOM LINE
    If you are upgrading from any version prior to 1.1:
    1. (Login to https://squareup.com/dashboard/apps and click on My Apps.
    2. Click the Manage App button next to your listed App.
    3. Make sure you are in Production as Sandbox is not used with Zen Cart
    4. Scroll down to the API Version settings:
    5. For version 1.1 of this mod, make sure your Production API Version is at least version 2020-03-25 or later.
    6. .................

  10. #400
    Join Date
    Jan 2004
    Posts
    66,408
    Blog Entries
    7
    Plugin Contributions
    81

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

    @dbltoe - thanks for posting this.

    I would have expected it to automatically use the right API version, since the SDK (which this module uses since v1.0) passes the API version it's written for, so should override what's set in the merchant account. (This is the behavior that other systems use, hence the assumption.)
    .

    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.

 

 
Page 40 of 76 FirstFirst ... 30383940414250 ... LastLast

Similar Threads

  1. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 127
    Last Post: 26 Mar 2021, 04:13 PM
  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: 0
    Last Post: 21 Nov 2006, 06:43 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