Page 1 of 2 12 LastLast
Results 1 to 10 of 821

Hybrid View

  1. #1
    Join Date
    Oct 2019
    Location
    Georgia, USA
    Posts
    54
    Plugin Contributions
    0

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

    Hello,

    I installed Square Payments 1.1 today. I processed a test payment using the "authorize" setting. After logging into the admin area, I attempted to capture the payment, but received an http 500 error, with the following as the URL: https://tempcart.m a r i n l a t i n f o o d s.com/adminfolder/orders.php?page=1&oID=1960&action=doCapture . The complete message text was: "This page isn’t working, tempcart.m a r i n l a t i n f o o d s.com is currently unable to handle this request. HTTP ERROR 500"
    I am using ZC v1.5.6c .
    Please advise...
    mrsawyer

  2. #2
    Join Date
    Oct 2019
    Location
    Georgia, USA
    Posts
    54
    Plugin Contributions
    0

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

    Quote Originally Posted by mrsawyer View Post
    Hello,

    I installed Square Payments 1.1 today. I processed a test payment using the "authorize" setting. After logging into the admin area, I attempted to capture the payment, but received an http 500 error, with the following as the URL: https://tempcart.m a r i n l a t i n f o o d s.com/adminfolder/orders.php?page=1&oID=1960&action=doCapture . The complete message text was: "This page isn’t working, tempcart.m a r i n l a t i n f o o d s.com is currently unable to handle this request. HTTP ERROR 500"
    I am using ZC v1.5.6c .
    Please advise...
    mrsawyer
    I forgot to mention in my original post yesterday that we are using PHP Version 7.2.24.
    Thanks

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

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

    Scroll up to post # 421 and see if that helps.

    I think I read somewhere where v1.0 captures without a hiccup and v1.1 might have hiccups.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

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

    Visit with your host about the 500 error.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Feb 2017
    Location
    Tokyo, Japan
    Posts
    334
    Plugin Contributions
    0

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

    Looks like Square is having some major issues at the moment.
    I have been trying to test the newer APIs since twitchtoo mentioned 0.97 (which I am on still) works with the latest API.

    I can say that the latest API (2020-05-28) gives communications error when I try to use it ("Square will be right back"),
    but that the one I originally used (2019-06-12) still works, although the 502 errors from Square prevent me from seeing any transactions.

    On my test shop I have the payment module set to authorize, so I expect I need to manually capture it in the Square dashboard (there is no such capture in the Zen Cart order screen). At the moment I cannot check that, and it seems Square does not send out any emails on authorized transactions (they do send notification emails for payment transactions that have gone through).
    Last edited by gernot; 28 May 2020 at 07:43 PM.
    Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

  6. #6
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

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

    Quote Originally Posted by gernot View Post
    ...so I expect I need to manually capture it in the Square dashboard (there is no such capture in the Zen Cart order screen).
    i do not believe this is true. your square order may not be in the right status to do a capture on the ZC admin (or something else). if you search for _doCapt, you can see the modules that have this function, in theory, integrated with the ZC process of capturing a transaction in it.

    includes/modules/payment/square_support/square_admin_notification.php
    includes/modules/payment/paypaldp.php
    includes/modules/payment/paypalwpp.php
    includes/modules/payment/square.php
    includes/modules/payment/authorizenet_aim.php
    includes/modules/payment/authorizenet/authorizenet_admin_notification.php
    includes/modules/payment/paypal/paypalwpp_admin_notification.php
    admin/orders.php

    i have never integrated with square or with a _doCapt, so i have no more info to provide on the topic.

    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.

  7. #7
    Join Date
    Feb 2017
    Location
    Tokyo, Japan
    Posts
    334
    Plugin Contributions
    0

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

    Quote Originally Posted by carlwhat View Post
    i do not believe this is true. your square order may not be in the right status to do a capture on the ZC admin (or something else). if you search for _doCapt, you can see the modules that have this function, in theory, integrated with the ZC process of capturing a transaction in it.

    includes/modules/payment/square_support/square_admin_notification.php
    includes/modules/payment/paypaldp.php
    includes/modules/payment/paypalwpp.php
    includes/modules/payment/square.php
    includes/modules/payment/authorizenet_aim.php
    includes/modules/payment/authorizenet/authorizenet_admin_notification.php
    includes/modules/payment/paypal/paypalwpp_admin_notification.php
    admin/orders.php

    i have never integrated with square or with a _doCapt, so i have no more info to provide on the topic.

    best.
    Hi carlwhat,
    Thanks for the information.
    I checked again today (https://jp.issquareup.com still shows Square as having serious issues) and could at least see my transactions in the dashboard this time. And I could do a refund on my test transaction there.

    Then, when I logged into my ZenCart testshop admin again and looked at the order, lo and behold, the expected grey area for handling Square transactions was there!! So I assume that the reason it was not there before was because of transmissions failure to Square.

    Now it would be really useful to have an indication of this kind of issue in the Zen Cart order screen (there was no missing space underneath the payment method information with last line "Credit Card Expires: xx/xx" and the start of the Products listing).
    It looks like if there is some communication error that section of the order page is simply not rendered.
    Note that when testing the API versions when I updated to 2020-05-28 I got a transaction error mail with the contents "Square will be right back" but with 2019-06-12 the transaction had gone through (the test transaction under discussion), so maybe the error for the API version was related to the general Square issue and not specifically to the API. I will try again...

    Back to the transaction. I tried to do a refund from Zen Cart just to check, and got the expected error(s) in reply (in red at the top of the page) since I had already refunded from the Square dashboard:
    1. Unable to process payment due to a communications error. You may try again or contact us for assistance.
    2. Sorry, the attempted transaction update failed unexpectedly. See logs for details. [REFUND_AMOUNT_INVALID: The requested refund amount exceeds the amount available to refund. One or more refunds might already have been applied to this payment.]

    So that seems to be working fine, and I can delete the test order.

    Will report back with more API tests.
    Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

  8. #8
    Join Date
    Oct 2019
    Location
    Georgia, USA
    Posts
    54
    Plugin Contributions
    0

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

    Quote Originally Posted by dbltoe View Post
    Visit with your host about the 500 error.
    I am getting a totally blank page when using firefox. with Chrome, I get an "i" indicating that the URL is not secure, even though the URL starts with https://.
    In the ZC error log, it says I am passing the wrong number of arguments to Square.

    See: [28-May-2020 21:12:54 UTC] Request URI: /adminfolder/orders.php?page=1&oID=1960&action=doCapture, IP address: 173.231.nnn.nnn
    --> PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function SquareConnect\Api\PaymentsApi::completePayment(), 1 passed in /home/xyz/tempcart.m a r i n l a t i n f o o d s.com/includes/modules/payment/square.php on line 1158 and exactly 2 expected in /home/xyz/tempcart.m a r i n l a t i n f o o d s.com/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php:266

    So looks like a coding error in the plugin.
    Please advise...
    mrsawyer

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Quote Originally Posted by simon1066 View Post
    I have the same/similar issue capturing funds with v1.1 of this mod (PHP v7.2.24, API 2020-3-25). I have a live, authorised, order awaiting capture. Error log is:

    Code:
    [17-Apr-2020 14:01:51 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function SquareConnect\Api\PaymentsApi::completePayment(), 1 passed in /home/mydomain/public_html/includes/modules/payment/square.php on line 1158 and exactly 2 expected in /home/mydomain/public_html/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php:266
    Stack trace:
    #0 /home/mydomain/public_html/includes/modules/payment/square.php(1158): SquareConnect\Api\PaymentsApi->completePayment('[simon1066_string_hidden]...')
    #1 /home/mydomain/public_html/myadmin/orders.php(285): square->_doCapt('1275', 'Complete', '2.5000', 'GBP')
    #2 {main}
      thrown in /home/mydomain/public_html/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php on line 266
    
    [17-Apr-2020 14:01:51 UTC] Request URI: /myadmin/orders.php?page=1&oID=1275&action=doCapture, IP address: 11.222.333.444
    --> PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function SquareConnect\Api\PaymentsApi::completePayment(), 1 passed in /home/mydomain/public_html/includes/modules/payment/square.php on line 1158 and exactly 2 expected in /home/mydomain/public_html/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php:266
    Stack trace:
    #0 /home/mydomain/public_html/includes/modules/payment/square.php(1158): SquareConnect\Api\PaymentsApi->completePayment('[simon1066_string_hidden]...')
    #1 /home/mydomain/public_html/myadmin/orders.php(285): square->_doCapt('1275', 'Complete', '2.5000', 'GBP')
    #2 {main}
      thrown in /home/mydomain/public_html/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php on line 266.
    If I have to revert to v1.0 will it affect the order?
    Quote Originally Posted by Phosphoric View Post
    Had some issues using 1.1.

    Seemed to authorize transactions but in admin it would just load a blank page on capture; and not actually capture. Server php is 7.0, zen cart version is 1.5.6c, and the square API is set to 2020-3-25.


    Gives me a warning then a error:
    Code:
    PHP Warning: Missing argument 2 for SquareConnect\Api\PaymentsApi::completePayment(), called in /public_html/includes/modules/payment/square.php on line 1158 and defined in /public_html/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php on line 266.
    
    PHP Fatal error:  Uncaught InvalidArgumentException: Missing the required parameter $body when calling completePayment in /public_html/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php:292

    I cant remember which version I tried to upgrade from, But 1.1 will not capture transactions. To get 1.1 to function at all I had to uninstall and reinstall the module.

    I uninstalled 1.1 module -I downloaded 1.0, overwrote all files and its working.

    I'm not sure what is going on between to two versions, But Ill keep a eye out for this token refresh bug for now.
    Quote Originally Posted by mrsawyer View Post
    I am getting a totally blank page when using firefox. with Chrome, I get an "i" indicating that the URL is not secure, even though the URL starts with https://.
    In the ZC error log, it says I am passing the wrong number of arguments to Square.

    See: [28-May-2020 21:12:54 UTC] Request URI: /adminfolder/orders.php?page=1&oID=1960&action=doCapture, IP address: 173.231.nnn.nnn
    --> PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function SquareConnect\Api\PaymentsApi::completePayment(), 1 passed in /home/xyz/tempcart.m a r i n l a t i n f o o d s.com/includes/modules/payment/square.php on line 1158 and exactly 2 expected in /home/xyz/tempcart.m a r i n l a t i n f o o d s.com/includes/classes/vendors/square/connect/lib/Api/PaymentsApi.php:266

    So looks like a coding error in the plugin.
    Please advise...
    mrsawyer
    Quote Originally Posted by mrsawyer View Post
    Hello,

    I installed Square Payments 1.1 today. I processed a test payment using the "authorize" setting. After logging into the admin area, I attempted to capture the payment, but received an http 500 error...The complete message text was: "This page isn’t working, [domain name redacted] is currently unable to handle this request. HTTP ERROR 500"
    I am using ZC v1.5.6c .
    Please advise...
    mrsawyer
    Yes, there was a bug in the capture code in v1.1. Unfortunately Square's documentation wasn't mentioning that the Connect SDK requires an empty dataset parameter to be passed to the capture request, making it a little hard to track down.
    The fix, which is in v1.2 is:
    https://github.com/zencart/square_pa...b8a26bd8c129b1
    .

    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.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    Some new versions have just been released:

    v1.2 - includes fixes for the refund and capture PHP errors, and adds an extra display field for custom text on checkout screen. Uses API 3.20200325.0

    v1.3 - Updates to SquareConnect SDK version 3.20200528.1
    (Note: This is the last release of SquareConnect SDK that is compatible with PHP 5. Future versions will require PHP 7.1+, and will be integrated to the SquarePHP SDK (not SquareConnect). A version 2 of this module will be released to work with the new SDK, but this will also limit which Zen Cart versions the module is compatible with. If you are not using Zen Cart 1.5.6 or newer and PHP 7.1 or newer, now is the time to upgrade!)
    (this is a full upgrade of all files: see the changelog.md file for instructions)

    v1.4 - simply adds display of the API / SDK versions in the admin sidebar so you can easily reference it for setting the API version in your Square account.
    (this is just an update to the square.php payment module file)

    v1.5 - Added improvements to catching errors that could occur during capture/void/refund.
    (this is just an update to the square.php payment module file)
    Last edited by DrByte; 23 Jun 2020 at 03:53 AM. Reason: added v1.5
    .

    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 1 of 2 12 LastLast

Similar Threads

  1. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 109
    Last Post: 1 Dec 2024, 01:36 PM
  2. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 127
    Last Post: 26 Mar 2021, 04:13 PM
  3. 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
  4. Layaway Payment Module Support Thread
    By Danielle in forum Addon Payment Modules
    Replies: 0
    Last Post: 21 Nov 2006, 06:43 AM

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