Results 1 to 10 of 800

Hybrid View

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

    Default Re: Square WebPay support thread.

    Good afternoon,
    I'm getting a "whoops, your session has expired" upon submitting Order Confirmation Step 3 of 3 Confirm the Order.

    I tried replacing file: https://github.com/proseLA/square_we...are_webPay.php (and added a blank line after initially receiving a white page on 2nd page)
    I also tried replacing my Square "Production Application secret"

    - Running
    1.5.7d (upgraded from 1.5.7b)
    clone a template (cloned Responsive Classic Template)
    Sitemap XML v4.0
    Square WebPay
    PayPal Express Checkout

    No debug logs are being generated after adding blank line to fix "unexpected end of file in "/public_html/VDSstore/includes/modules/pages/checkout_payment/jscript_square_webPay.php on line 191"

    I appreciate help from anyone.
    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)

  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 VDecalS View Post
    Good afternoon,
    I'm getting a "whoops, your session has expired" upon submitting Order Confirmation Step 3 of 3 Confirm the Order.

    I tried replacing file: https://github.com/proseLA/square_we...are_webPay.php (and added a blank line after initially receiving a white page on 2nd page)
    I also tried replacing my Square "Production Application secret"

    - Running
    1.5.7d (upgraded from 1.5.7b)
    clone a template (cloned Responsive Classic Template)
    Sitemap XML v4.0
    Square WebPay
    PayPal Express Checkout

    No debug logs are being generated after adding blank line to fix "unexpected end of file in "/public_html/VDSstore/includes/modules/pages/checkout_payment/jscript_square_webPay.php on line 191"

    I appreciate help from anyone.
    why you are getting to a timeout, i can not say. i went to your site, and it looks like you have square in sandbox mode. square_webPay is doing everything as expected. see this screenshot:

    https://www.dropbox.com/s/dgj8qduuah...00-27.png?dl=0

    the tokenResult is on the form and hidden, and its status is ok. as i entered a test credit card number, i can only assume that you are in test mode else the status would not have been ok.

    i would try live credentials and see if that works.

    as far as the timeout goes, have you overridden your checkout_process.php file? i would think that is where the timeout is happening, specifically here:

    https://github.com/zencart/zencart/b...ss.php#L28-L39

    do you have this file:

    /YOUR_STORE_ROOT/includes/modules/Gray157b/checkout_process.php

    if you do great. if not copy it from here:

    /YOUR_STORE_ROOT/includes/modules/checkout_process.php

    to the above location. you can then change your slamming_threshold to something like 15, and see if that helps.

    as far as square_webpay, i see no problems.

    hope that helps!

    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
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    why you are getting to a timeout, i can not say. i went to your site, and it looks like you have square in sandbox mode. square_webPay is doing everything as expected. see this screenshot:

    https://www.dropbox.com/s/dgj8qduuah...00-27.png?dl=0

    the tokenResult is on the form and hidden, and its status is ok. as i entered a test credit card number, i can only assume that you are in test mode else the status would not have been ok.

    i would try live credentials and see if that works.
    I checked that the Square WebPay Module "Application ID" and "Application Secret (OAuth)" match the "production" credentials from my Square account and I have the "Transaction Type" set to purchase. Is there something else I need to change in my Square account?
    How are you deciphering sandbox mode in the image? (It's all Greek to me)

    Quote Originally Posted by carlwhat View Post
    as far as the timeout goes, have you overridden your checkout_process.php file? i would think that is where the timeout is happening, specifically here:

    https://github.com/zencart/zencart/b...ss.php#L28-L39

    do you have this file:

    /YOUR_STORE_ROOT/includes/modules/Gray157b/checkout_process.php

    if you do great. if not copy it from here:

    /YOUR_STORE_ROOT/includes/modules/checkout_process.php

    to the above location. you can then change your slamming_threshold to something like 15, and see if that helps.

    as far as square_webpay, i see no problems.

    hope that helps!

    best.
    I did not have checkout_process.php in my Gray157b, so I added it and changed the slamming threshold from 3 to 15 with no changed result. I tried checking out with PayPal and it steps me through page 3 of 3 without the "Whoops!" (no time out).

    The square-webPay-master zip file is dated 04/05/2022. I did a search via WinSCP for files dated 4/5/2022 all are from the module. So I guess I could delete and start over. Thoughts/advice?

    Thank you for the NBL carlwhat.
    Last edited by VDecalS; 14 May 2022 at 09:16 PM.
    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
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Square WebPay support thread.

    Quote Originally Posted by VDecalS View Post
    I checked that the Square WebPay Module "Application ID" and "Application Secret (OAuth)" match the "production" credentials from my Square account and I have the "Transaction Type" set to purchase. Is there something else I need to change in my Square account?
    How are you deciphering sandbox mode in the image? (It's all Greek to me)



    I did not have checkout_process.php in my Gray157b, so I added it and changed the slamming threshold from 3 to 15 with no changed result. I tried checking out with PayPal and it steps me through page 3 of 3 without the "Whoops!" (no time out).

    The square-webPay-master zip file is dated 04/05/2022. I did a search via WinSCP for files dated 4/5/2022 all are from the module. So I guess I could delete and start over. Thoughts/advice?

    Thank you for the NBL carlwhat.
    i am not really sure what is causing your time out. i have looked at the square changes i have done since 4/5; and nothing in there would seem to address this problem.

    have you tried any other payment modules to see if they work besides paypal?
    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 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Square WebPay support thread.

    it has also come to my attention, that it may be related to a cookie setting. do you have if you have this value set: COOKIE_SAMESITE? and if so, what is it?

    one could look using the developer tools off the admin -> tools menu.

    also, what version of php are you running?

    and finally please confirm that you are running zc 1.5.7d.

    thanks.
    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. #6
    Join Date
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    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
    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)

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

    Default Re: Square WebPay support thread.

    ... Money Order payment option works. I have no other online modules set up that I can test.
    Do you want me to enable Square WebPay for your research?

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,937
    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!

 

 

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