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

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    127
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by todoonada View Post
    I have to come back to the error I already posted at #356 in this thread.

    I find this error more often now in the log files. It is an error in the source files of Square. I can not recreate this error and don't understand what could cause this error.

    --> PHP Fatal error: Uncaught TypeError: Square\ApiHelper::serialize(): Return value must be of type string, bool returned in /includes/modules/payment/square_webPay/square/square/src/ApiHelper.php:113

    I did not receive any Square Alert mail about this error.
    I use Zen Cart v1.5.7d and php 8.0.25
    Some additional information about this problem.
    I have my product names in this style: Japanese Name of Product <br /> English Name of the Product
    So it looks like this: プラスティックボトル 1000ml<br />Plastic Bottle 1000ml in the input field of the product manager.

    Yesterday I saw a customer who had this problem in the "Whos Online" list of the backend. Since the error happened in the serialize function, I somehow had a feeling it has something to do with the product name or the html tag in the product name.
    So I made notes of the items the customer had in the cart and changed the product names of those items to Japanese Name of Product (I removed <br /> English Name of the Product ).
    The customer tried a while later to check out again and it worked. Of course I do not know if the customer changed something on his side. Japanese has some different input methods and it might be a certain input method caused the error.

    Also it does not explain why most customers can check out without any problem and with the full product name (Japanese Name of Product <br /> English Name of the Product) .


    I also asked in the Square developer forum, but they thought it is a problem of the Zen Cart API.

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

    Default Re: Square WebPay support thread.

    Quote Originally Posted by todoonada View Post
    Some additional information about this problem.
    I have my product names in this style: Japanese Name of Product <br /> English Name of the Product
    So it looks like this: プラスティックボトル 1000ml<br />Plastic Bottle 1000ml in the input field of the product manager.

    Yesterday I saw a customer who had this problem in the "Whos Online" list of the backend. Since the error happened in the serialize function, I somehow had a feeling it has something to do with the product name or the html tag in the product name.
    So I made notes of the items the customer had in the cart and changed the product names of those items to Japanese Name of Product (I removed <br /> English Name of the Product ).
    The customer tried a while later to check out again and it worked. Of course I do not know if the customer changed something on his side. Japanese has some different input methods and it might be a certain input method caused the error.

    Also it does not explain why most customers can check out without any problem and with the full product name (Japanese Name of Product <br /> English Name of the Product) .


    I also asked in the Square developer forum, but they thought it is a problem of the Zen Cart API.
    more information is always better. i will try and take a look at this and see if i can reproduce it.

    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.

  3. #3
    Join Date
    Nov 2006
    Posts
    127
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    more information is always better. i will try and take a look at this and see if i can reproduce it.

    best.
    Thank you.
    I have another question: How can I test the Square WebPay module without doing any cc transfers? I would like to reproduce the error, but do not want to make lots of payments and later cancel all. Square would probably also not like this.

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

    Default Re: Square WebPay support thread.

    Quote Originally Posted by todoonada View Post
    Thank you.
    I have another question: How can I test the Square WebPay module without doing any cc transfers? I would like to reproduce the error, but do not want to make lots of payments and later cancel all. Square would probably also not like this.
    you need to create sandbox credentials and enter them in the admin.

    one should have a development site to do sandboxing, else you should put your site into maintenance mode.

    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.

  5. #5
    Join Date
    Nov 2006
    Posts
    127
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    more information is always better. i will try and take a look at this and see if i can reproduce it.

    best.
    Hello carlwhat,
    I could not reproduce the error. I made some observations while checking the "Whos online" page of the shop.
    I saw a customer checking out and it stayed awfully long at the squareWebPay_handler.php file. I expected another error of the same kind I described before, but after 20 seconds the file switched to checkout_success and there was no error and the order was successful.
    A few days later I saw the same again, but even after 15 minutes, the file was still squareWebPay_handler.php. After this the customer was not visible on the "Whos online" page, because after 15 mins of inactivity, they are removed from the list. There was no error file in the log folder for this transaction and no successful order.

    I checked the encoding of customer's data and the item he wanted to order, but could not find anything strange.

    So I think that the error might come from people trying to reload the page or clicking the browser's back button, when it takes too long to show the checkout_success page and only a white page is displayed.

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

    Default Re: Square WebPay support thread.

    158
    PHP 8.1
    bootstrap clone
    OPC

    Code:
    [13-Feb-2023 15:20:02 UTC] Request URI: /index.php?main_page=checkout_one, IP address: 471.642.591.531, Language id 1#0 /includes/modules/payment/square_webPay/square/square/src/Models/Location.php(12): zen_debug_error_handler()
    #1 /laravel/vendor/composer/ClassLoader.php(571): include('/home/haremark/...')
    #2 /laravel/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile()
    #3 /includes/modules/payment/square_webPay.php(795): Composer\Autoload\ClassLoader->loadClass()
    #4 /includes/modules/pages/checkout_payment/jscript_square_webPay.php(36): square_webPay->getLocationDetails()
    #5 /includes/modules/pages/checkout_one/jscript_square_webPay.php(22): require('/home/frammer/...')
    #6 /includes/templates/boot_clone/common/html_header.php(224): require('/home/frammer/...')
    #7 /index.php(42): require('/home/frammer/...')
    --> PHP Deprecated: Return type of Square\Models\Location::jsonSerialize(bool $asArrayWhenEmpty = false) should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/modules/payment/square_webPay/square/square/src/Models/Location.php on line 807.
    Should line 807 go from
    Code:
    public function jsonSerialize(bool $asArrayWhenEmpty = false)
    to
    Code:
    #[\ReturnTypeWillChange]
    public function jsonSerialize(bool $asArrayWhenEmpty = false)
    or
    Code:
    public function jsonSerialize(bool $asArrayWhenEmpty = false):mixed
    none of the above?
    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.

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

    Default Re: Square WebPay support thread.

    on the downloads page:

    -- The square SDK has NOT changed (17.2.0.20220216), and only supports up to php 8.0.
    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. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,701
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Other than logs complaining about deprecation, it works.

    Just FYI
    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.

  9. #9
    Join Date
    Nov 2006
    Posts
    127
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    more information is always better. i will try and take a look at this and see if i can reproduce it.

    best.
    Since I can not reproduce the error, I can only hope to see the error live on the "Whos online" list of active customers.
    I just had another customer who was stuck at squareWebPay_handler.php for 30s.
    It seems he went then back to checkout_confirmation and then was able to finish the credit card transaction. No error in the logs.

    I think something is wrong on Square's or Square Japan's side.

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

    Default Re: Square WebPay support thread.

    Quote Originally Posted by todoonada View Post
    Since I can not reproduce the error, I can only hope to see the error live on the "Whos online" list of active customers.
    I just had another customer who was stuck at squareWebPay_handler.php for 30s.
    It seems he went then back to checkout_confirmation and then was able to finish the credit card transaction. No error in the logs.

    I think something is wrong on Square's or Square Japan's side.
    i would have to run some more transactions. i am not sure why a customer would be stuck at the handler for 30s.

    remind me of your setup with regards to OAuth renewal? specifically do you have an automated job set up like in the docs?

    if you do not have a cronjob set up, i would set that up. if you do already have it set up, set $verbose to true, to see the results of it.

    and how many orders paid by square are you getting each week?
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Square Payment Module for Zen Cart [Support Thread]
    By DrByte in forum Addon Payment Modules
    Replies: 820
    Last Post: 16 May 2026, 01:07 AM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 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

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