Results 1 to 10 of 800

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,939
    Plugin Contributions
    96

    Default Re: Square WebPay support thread.

    Quote Originally Posted by VDecalS View Post
    I ran a search in the tool kit for COOKIE_SAMESITE (ran in every option) and found just these two:

    /home/vinyld6/public_html/VDSstore/***/includes/init_includes/init_sessions.php
    Line #25 : $samesite = (defined('COOKIE_SAMESITE')) ? COOKIE_SAMESITE : 'lax';
    and

    /home/vinyld6/public_html/VDSstore/includes/init_includes/init_sessions.php
    Line # 42 : $samesite = (defined('COOKIE_SAMESITE')) ? COOKIE_SAMESITE : 'lax';

    PHP Version: 7.2.34 (Zend: 3.2.0)
    Zen Cart 1.5.7d
    Database Patch Level: 1.5.7b
    v1.5.7b [2021-02-20 16:19:18] (Version Update 1.5.6->1.5.7b)
    v1.5.6c [2021-02-20 16:19:17] (Version Update 1.5.5->1.5.6c)
    v1.5.5 [2016-03-30 10:00:19] (Version Update 1.5.4->1.5.5)
    v1.5.4 [2016-03-30 10:00:18] (Version Update 1.5.3->1.5.4)
    v1.5.3 [2016-03-30 10:00:18] (Version Update 1.5.2->1.5.3)
    v1.5.2 [2016-03-30 10:00:17] (Version Update 1.5.1->1.5.2)
    v1.5.1 [2016-03-30 10:00:16] (Version Update 1.5.0->1.5.1)
    v1.5.0 [2016-03-30 10:00:15] (Version Update 1.3.9->1.5.0)
    v1.3.9b [2010-05-15 15:00:01] (Version Update 1.3.8->1.3.9b)
    v1.3.8 [2009-06-14 16:02:34] (Fresh Installation)
    v1.3.8 [2009-06-14 16:02:34] (Fresh Installation)

    Thinking I had a corruption during upload, I was just about to delete all the Square WebPay files and start over. I also have FULL backups prior to the install of Square WebPay that I can restore.

    Thanks again carlwhat
    In addition, check your storefront /includes/configure.php file to make sure that both the HTTP_SERVER and HTTPS_SERVER definitions start with 'https' and that ENABLE_SSL is set to 'true' (including the quotes).

    If those are all OK, for the SAMESITE_COOKIE setting (although I've not seen any other time-out issues reported in this support-thread), try creating a file named samesite_cookie.php in the storefront /includes/extra_datafiles directory that contains:
    PHP Code:
    <?php
    // -----
    // Identify that the site uses the 'samesite' cookie setting of 'None', since some payments (when returning
    // from a 3DS verification) need the cookie set this way.
    //
    if (ENABLE_SSL == 'true') {
        
    define('COOKIE_SAMESITE''none');
    }
    That 'might' work, but I'm on a guessing path here!

  2. #2
    Join Date
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Checked - storefront /includes/configure.php
    define('HTTP_SERVER', 'https://vinyldecalsuperstore.com');
    define('HTTPS_SERVER', 'https://vinyldecalsuperstore.com');
    define('ENABLE_SSL', 'true');
    looks good there.

    Created the samesite_cookie.php and copied the code with no trailing blank line, then with a trailing blank line after the }, neither got me past the Whoops.

    Thanks for looking Cindy!
    My store - closed 12/05/2023
    1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

  3. #3
    Join Date
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    I do notice that my Location ID is not being displayed after step 2 of module install (ie. green box ..login and Authorize your account)
    Click image for larger version. 

Name:	Inkedswp-no location id_LI.jpg 
Views:	619 
Size:	24.3 KB 
ID:	19988
    I have to EDIT Square WebPay again, making no changes, just clicking the UPDATE button. Then the Location ID shows as:
    VinylDecalSuperstore.com:[**letter/number-code**]:USD

    I hope this is the important information, I've neglected to tell before now, that will allow a fix.
    My store - closed 12/05/2023
    1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

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

    Default Re: Square WebPay support thread.

    1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.2.34
    Please note that this module needs PHP 7.3.3.
    I have not been able to get it going with anything less.
    You are at 1.5.7d which should be able to handle 7.4 or 8.0. Some of your existing mods may not play well with 8.0, so start with 7.4 and work up.
    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
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by dbltoe View Post
    Please note that this module needs PHP 7.3.3.
    I have not been able to get it going with anything less.
    You are at 1.5.7d which should be able to handle 7.4 or 8.0. Some of your existing mods may not play well with 8.0, so start with 7.4 and work up.
    Humm. Tried both, neither let me complete purchase so I knocked it back to PHP 7.4.29 (Zend: 3.4.0)
    Thanks dbltoe
    My store - closed 12/05/2023
    1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,939
    Plugin Contributions
    96

    Default Re: Square WebPay support thread.

    Since the site is running https-all-the-time, your site's root .htaccess file should 'support' that. Make a backup copy and add the following clauses close to the top of the file to 'force' the access to https://vinyldecalsuperstore.com/{whatever} when the access is made as

    vinyldecalsuperstore.com/VDSstore/{whatever}
    http://vinyldecalsuperstore.com/{whatever}
    http://www.vinyldecalsuperstore.com/{whatever}
    https://www.vinyldecalsuperstore.com/{whatever}

    Code:
    RewriteCond %{SERVER_PORT} 80 [OR]
    RewriteCond %{HTTP_HOST} ^www\.vinyldecalsuperstore\.com$ [NC]
    RewriteRule (.*) https://vinyldecalsuperstore.com/$1 [R=301,L]

  7. #7
    Join Date
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by lat9 View Post
    Since the site is running https-all-the-time, your site's root .htaccess file should 'support' that. Make a backup copy and add the following clauses close to the top of the file to 'force' the access to https://vinyldecalsuperstore.com/{whatever} when the access is made as

    vinyldecalsuperstore.com/VDSstore/{whatever}
    http://vinyldecalsuperstore.com/{whatever}
    http://www.vinyldecalsuperstore.com/{whatever}
    https://www.vinyldecalsuperstore.com/{whatever}

    Code:
    RewriteCond %{SERVER_PORT} 80 [OR]
    RewriteCond %{HTTP_HOST} ^www\.vinyldecalsuperstore\.com$ [NC]
    RewriteRule (.*) https://vinyldecalsuperstore.com/$1 [R=301,L]
    I've got a bunch of this stuff in my .htaccess folder right now, including a domain that points to my primary vinyldecalsuperstore.com
    Code:
    RewriteCond %{HTTP_HOST} ^vdsdecal\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.vdsdecal\.com$
    RewriteRule ^/?$ "https\:\/\/vinyldecalsuperstore\.com\/" [R=301,L]
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP:X-Forwarded-SSL} !on
    RewriteCond %{HTTP_HOST} ^vinyldecalsuperstore\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.vinyldecalsuperstore\.com$
    RewriteRule ^/?$ "https\:\/\/vinyldecalsuperstore\.com\/" [R=301,L]
    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^/?$ "https\:\/\/vinyldecalsuperstore\.com\/VDSstore\/" [R=301,L]
    RewriteBase /
    
    # Rewrites all URLS without VDSstore in them
    RewriteCond %{REQUEST_URI} !^/VDSstore/
    
    # Rewrites all URLS [Replace "example" with the actual domain, without the TLD (.com, .net, .biz, etc)]
    RewriteCond %{HTTP_HOST} ^(www\.)?vinyldecalsuperstore\.
    
    # Rewrite all those to insert /folder
    RewriteRule ^(.*)$ /VDSstore/$1 [L]
    Is there a particular order I should have all this and if so, where should I insert the code you gave me?
    Thank you so very much!
    My store - closed 12/05/2023
    1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

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

    Default Re: Square WebPay support thread.

    Installed the new 1.0.2 on 1.5.7d with OPC.

    Getting
    Code:
    [30-Oct-2022 13:30:25 America/New_York] PHP Fatal error: Uncaught TypeError: Argument 1 passed to square_webPay::saveAccessToken() must be an instance of Square\Models\ObtainTokenResponse, instance of Square\Http\ApiResponse given, called in /includes/modules/payment/square_webPay.php on line 779 and defined in /includes/modules/payment/square_webPay.php:678
    Stack trace:
    #0 /includes/modules/payment/square_webPay.php(779): square_webPay->saveAccessToken(Object(Square\Http\ApiResponse))
    #1 /includes/modules/payment/square_webPay.php(622): square_webPay->renewOAuthToken()
    #2 /squareWebPay_handler.php(45): square_webPay->token_refresh_check(false)
    #3 {main}
    thrown in /includes/modules/payment/square_webPay.php on line 678
    
    [30-Oct-2022 13:30:25 America/New_York] Request URI: /squareWebPay_handler.php, IP address: 68.##.##.122
    --> PHP Fatal error: Uncaught TypeError: Argument 1 passed to square_webPay::saveAccessToken() must be an instance of Square\Models\ObtainTokenResponse, instance of Square\Http\ApiResponse given, called in /includes/modules/payment/square_webPay.php on line 779 and defined in /includes/modules/payment/square_webPay.php:678
    Stack trace:
    #0 /includes/modules/payment/square_webPay.php(779): square_webPay->saveAccessToken(Object(Square\Http\ApiResponse))
    #1 /includes/modules/payment/square_webPay.php(622): square_webPay->renewOAuthToken()
    #2 /squareWebPay_handler.php(45): square_webPay->token_refresh_check(false)
    #3 {main}
    thrown in /includes/modules/payment/square_webPay.php on line 678.
    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.

 

 

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