Results 1 to 10 of 791

Threaded View

  1. #11
    Join Date
    Nov 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    i have an already installed version of square web pay on my development server. if i switch my dev box to run php 8.0.20, i am able to process orders without problem. according to the square docs, the api version i used is good up to square 8.0.

    if i click remove and remove the square webPay module, zc removes the module no problem. and it still shows up. i am then able to re-install it.

    again, my dev machine is running v157 (latest codebase) and php 8.0.20.

    your error above suggests a missing class file. specifically:

    includes/modules/payment/square_webPay/square/square/src/Environment.php.

    in fact, if i remove that file from my system, i receive the following error:

    Code:
    [14-Oct-2022 17:14:41 America/Los_Angeles] PHP Fatal error:  Uncaught Error: Class "Square\Environment" not found in /var/www/zcdev/includes/modules/payment/square_webPay.php:107
    Stack trace:
    #0 /var/www/zcdev/admin/modules.php(204): square_webPay->__construct()
    #1 /var/www/zcdev/admin/index.php(11): require('...')
    #2 {main}
      thrown in /var/www/zcdev/includes/modules/payment/square_webPay.php on line 107
    
    [14-Oct-2022 17:14:41 America/Los_Angeles] Request URI: /admin/index.php?cmd=modules&set=payment, IP address: 192.168.14.74
    --> PHP Fatal error: Uncaught Error: Class "Square\Environment" not found in /var/www/zcdev/includes/modules/payment/square_webPay.php:107
    Stack trace:
    #0 /var/www/zcdev/admin/modules.php(204): square_webPay->__construct()
    #1 /var/www/zcdev/admin/index.php(11): require('...')
    #2 {main}
      thrown in /var/www/zcdev/includes/modules/payment/square_webPay.php on line 107.
    looks pretty similar to your error. in fact, i would say the same.

    i am happy that you got it working. but for anyone reading this thread, this module has been tested on php 8.0 and this module works without issue on that version of php.

    best.
    Thank you.
    includes/modules/payment/square_webPay/square/square/src/Environment.php is there, size is 236B.
    I also tested on my local testing Apache with PHP 8.0.15. Same error:
    Code:
    PHP Fatal error:  Uncaught Error: Class "Square\Environment" not found in /home/tim/zencartNewSisa/zencart1.5.6/includes/modules/payment/square_webPay.php:105
    The module does not show up and the box on the right side of the payment modules list is missing.

    PS: I do not have anything running yet. I just uploaded the files and checked if I can see the module.

    PPS: I also checked with PHP 8.1. Get the same error.
    Last edited by todoonada; 15 Oct 2022 at 01:55 AM.

 

 

Similar Threads

  1. Square Payment Module for Zen Cart [Support Thread]
    By DrByte in forum Addon Payment Modules
    Replies: 793
    Last Post: 16 Jun 2025, 11:59 AM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 AM
  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