Page 42 of 68 FirstFirst ... 32404142434452 ... LastLast
Results 411 to 420 of 672
  1. #411
    Join Date
    Oct 2007
    Posts
    69
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Thanks for the support!

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

    Default Re: Square WebPay support thread.

    Quote Originally Posted by spyderrobotics View Post
    Thanks for looking into it. I am not sure where to go from here. Maybe I can change the error message to just tell the customer to check that the fields are not blank. If you wanted to check it out my site is spyderrobotics.com

    I have paypal turned off at the moment so it can recreate the error. You can make a fake account and try the checkout.
    I get the same error with PayPal turned off:

    "We have a problem on our end. So Sorry! Please report this error to the Store Owner: SQ-MISSING-TOKEN"

    If PayPal is turned ON and credit card is checked, but not entered, I get a friendly reminder to enter credit card number before proceeding to page 3 of checkout.

    Friendly reminder is much nicer than error on store end.
    Name:  Capture.jpg
Views: 299
Size:  20.3 KB

    Code:
    [16-Feb-2023 14:23:08 America/Chicago] PHP Notice: missing token result: check if card button is disabled on dev console using: document.getElementById('card-button'); else look for javascript error in console. in /includes/modules/payment/square_webPay.php on line 234
    Last edited by VDecalS; 16 Feb 2023 at 09:34 PM. Reason: include error code
    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. #413
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,710
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    ok, a few changes coming.

    for those of you who use square as the only payment method, and want to prevent the funny message, the cool kids way is here:

    this file here:
    includes/modules/pages/checkout_payment/jscript_square_webPay.php
    Code:
    //line 39 was:
    if (document.querySelector('#pmt-square_webPay').checked)  {
    
    //change it to:
    if ((document.querySelector('#pmt-square_webPay').checked) || (document.querySelector('#pmt-square_webPay').getAttribute('type') == 'hidden')) {
    also, with that change, i do not think we will ever get here, but in:

    includes/modules/payment/square_webPay.php

    line 266, should be changed to something like:

    PHP Code:
    $messageStack->add_session('checkout_payment''uh...  looks like you did not input a credit card number!''error'); 
    these changes will be incorporated into a new release.

    thank you to those who support me.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #414
    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
    ok, a few changes coming.

    for those of you who use square as the only payment method, and want to prevent the funny message, the cool kids way is here:

    this file here:
    includes/modules/pages/checkout_payment/jscript_square_webPay.php
    Code:
    //line 39 was:
    if (document.querySelector('#pmt-square_webPay').checked)  {
    
    //change it to:
    if ((document.querySelector('#pmt-square_webPay').checked) || (document.querySelector('#pmt-square_webPay').getAttribute('type') == 'hidden')) {
    also, with that change, i do not think we will ever get here, but in:

    includes/modules/payment/square_webPay.php

    line 266, should be changed to something like:

    PHP Code:
    $messageStack->add_session('checkout_payment''uh...  looks like you did not input a credit card number!''error'); 
    these changes will be incorporated into a new release.

    thank you to those who support me.
    Thanks carlwhat.

    square_webPay-master from 7/26/2022. My code line was actually line 179 instead of 39, and there's an extra space before { on the example (which made finding it weird), but it works now!

    I didn't change the messageStack, because I couldn't determine which line needed changing, but agree we probably won't get there.
    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)

  5. #415
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,710
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by VDecalS View Post
    Thanks carlwhat.

    square_webPay-master from 7/26/2022. My code line was actually line 179 instead of 39, and there's an extra space before { on the example (which made finding it weird), but it works now!

    I didn't change the messageStack, because I couldn't determine which line needed changing, but agree we probably won't get there.
    my apologies. it was late, and i was looking at the wrong file for the line number.

    it is ~around line 180, and according to my code, line 185 on v1.0.3.

    thanks for confirming the fix.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #416
    Join Date
    Nov 2006
    Posts
    108
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    i would setup the cron job. and then keep on monitoring.

    i think the holdup on the handler is due to a renew of the OAuth. if the cronjob automatically renews it, then the customer will not be waiting on it.

    i am not sure that is your answer. but it is DEFINITELY worth a shot.

    best.
    The cronjob was no success. I just had someone get stuck several times at squareWebPay_handler.php again. The squareWebPay_handler.php displayed "not expired" because I had verbose set to true. The order finally came through, but of course I do not know why.

  7. #417
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,710
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by todoonada View Post
    The cronjob was no success. I just had someone get stuck several times at squareWebPay_handler.php again. The squareWebPay_handler.php displayed "not expired" because I had verbose set to true. The order finally came through, but of course I do not know why.
    of course, i do not know why either.

    that said, here is my new working theory... this has nothing to do with square.... or at least nothing to do with the handler...

    the handler comes back with "not expired". in looking at that part of the code, if that is the return, getting to that return should not take any time at all. or at least nothing associated with the kind of delays that you seeing. "not expired" means we looked at the OAuth, and it is fine, and lets go back to our normal scheduled programming. now whether square itself is having an issue in communicating within japan, i can not say.

    what your user is waiting for is up for anyone's guess. the fact that you are looking at who's online, and a user is stuck at the handler, is not definitive evidence that the handler is what is causing the problem. the only thing that tells me is that who's online is reporting that the last place i have seen this customer is at the handler. i have not dug deep into that code, but again, i do not have completer confidence that is where the last point is.

    have you tried contacting the user after this experience to see what their experience is?

    given that this situation is only happening for you, i find it hard to imagine that it is my code that is causing this problem. no one else is having these issues. might you have some sort of order conversion tracking on your website? something else may entirely be holding this order up... or not...

    i appreciate you reporting this issue, but i am now not sure what your expectation is from me or from anyone on the zen-cart boards.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #418
    Join Date
    Nov 2006
    Posts
    108
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    of course, i do not know why either.

    that said, here is my new working theory... this has nothing to do with square.... or at least nothing to do with the handler...

    the handler comes back with "not expired". in looking at that part of the code, if that is the return, getting to that return should not take any time at all. or at least nothing associated with the kind of delays that you seeing. "not expired" means we looked at the OAuth, and it is fine, and lets go back to our normal scheduled programming. now whether square itself is having an issue in communicating within japan, i can not say.

    what your user is waiting for is up for anyone's guess. the fact that you are looking at who's online, and a user is stuck at the handler, is not definitive evidence that the handler is what is causing the problem. the only thing that tells me is that who's online is reporting that the last place i have seen this customer is at the handler. i have not dug deep into that code, but again, i do not have completer confidence that is where the last point is.

    have you tried contacting the user after this experience to see what their experience is?

    given that this situation is only happening for you, i find it hard to imagine that it is my code that is causing this problem. no one else is having these issues. might you have some sort of order conversion tracking on your website? something else may entirely be holding this order up... or not...

    i appreciate you reporting this issue, but i am now not sure what your expectation is from me or from anyone on the zen-cart boards.
    I do not contact the customer, because it makes no good impression to let them know they are followed in their activities in the shop (I know big players are doing much creepier stuff, but you get the point). Also I would have to explain why I can not find the error myself and it just seems too much hassle to bother the customer with.
    I thought about a slow Square server, too. However I had customers who tried to checkout hours later and still had the same error. So a slow server seems not to be the reason.
    I don't think the error is connected to your code. Since you are very familiar how Square functions, my initial thought was, that you might have an idea what the problem might be.

  9. #419
    Join Date
    Mar 2023
    Location
    Arlington, TX
    Posts
    1
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    While setting this up for a client, ran into a few bugs that I did manage to fix. 2 seem to be related to an error condition that shouldn't happen (but somehow managed to make it happen) and the third is related to said situation. All are in the same file `includes/modules/payment/square_webPay.php`

    in `admin_notification` around line 530 change to :

    Code:
    $transaction = is_array($records) ? $records[0] : $records;
    in `lookupOrderDetails` there are two instances of calling `return new Models\Order;` that will fail as it expects a Location ID. One around line 897 and the other around 915. Both should be changed to the following:

    Code:
    $location = $this->getLocationDetails();
    return new Models\Order($location->getId());

  10. #420
    Join Date
    Apr 2009
    Posts
    429
    Plugin Contributions
    2

    Default Re: Square WebPay support thread.

    zen cart 1.5.8
    square web pay 1.0.4
    bootstrap 3.5.2

    I have an issue where the terms and conditions do not need to be ticked for an order to go through. I think it is connected to JavaScript and using preventDefault method. I believe that this means that required fields are not checked when the form is submitted. I have resolved the issue by adding the following to includes/modules/pages/checkout_payment/jscript_square_webPay.php

    original starting line 157
    Code:
                        var verifyBuyerResult = document.createElement("input");
                        verifyBuyerResult.setAttribute("type", "hidden");
                        verifyBuyerResult.setAttribute("name", "verifyBuyerResult");
                        verifyBuyerResult.setAttribute("value", JSON.stringify(verificationToken));
                        document.querySelector('[name="checkout_payment"]').appendChild(verifyBuyerResult);
                        cardButton.disabled = false;                 
                        document.forms["checkout_payment"].submit();
    new
    Code:
                        var verifyBuyerResult = document.createElement("input");
                        verifyBuyerResult.setAttribute("type", "hidden");
                        verifyBuyerResult.setAttribute("name", "verifyBuyerResult");
                        verifyBuyerResult.setAttribute("value", JSON.stringify(verificationToken));
                        document.querySelector('[name="checkout_payment"]').appendChild(verifyBuyerResult);
                        cardButton.disabled = false;                 
                        let isFormValid = document.forms["checkout_payment"].checkValidity();
                        if (isFormValid) {
                            document.forms["checkout_payment"].submit();
                        } else {
                            document.forms["checkout_payment"].reportValidity();
                        }
    Something similar may be required for one page checkout!
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

 

 
Page 42 of 68 FirstFirst ... 32404142434452 ... LastLast

Similar Threads

  1. Square Payment Module for Zen Cart [Support Thread]
    By DrByte in forum Addon Payment Modules
    Replies: 749
    Last Post: 5 Sep 2023, 01:16 AM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 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