Page 13 of 80 FirstFirst ... 311121314152363 ... LastLast
Results 121 to 130 of 791
  1. #121
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,448
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by dbltoe View Post
    One customer (with latest WebPay and OPC) is experiencing random Missing Token Reports. With nearly seventy successful transactions since this log file, there have only been five of these logs reported.

    I cannot find a commonality among them. topkayakerDOTcom

    Code:
    20-May-2022 21:50:40 UTC] 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
    It just does not make sense.

    From the store owner
    My first attempt (Citi) I got this error message:
    We have a problem on our end. So Sorry! Please report this error to the Store Owner: SQ-MISSING-TOKEN
    I changed to another card (Cap1) and was successful, Order No. #####.
    I then tried the first card (Citi) again and was successful, Order No. #####.
    I did Not clear my cache or use the F5 key. It is not my habit to do so. I only do that if I have no other option and must get a transaction to process.

    Shortly thereafter I called (shop customer) to place the order for him online from my computer at the office. The Error message below was displayed:
    Your transaction failed due to an error: [GENERIC_DECLINE] Authorization error: 'GENERIC_DECLINE'
    Yes, we went over all the card and address info VERY carefully, almost but not quite to the point where I was challenging his competency.
    He called back after talking to his bank. The bank said that the many transactions were approved by the “bank” but declined by the store. I assume store to be Square (fraud protection) and/or WEBSITE.
    Any thoughts greatly appreciated

  2. #122
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,448
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    More information on the subject.

    Made sure I was the only one processing an order and monitored from cart addition to completed charge with the chrome console.

    The error log created was
    Code:
    [26-May-2022 21:54:53 UTC] 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
    Yet, the successful transaction was made one second later.

    Name:  topkayakerSquare.jpg
Views: 262
Size:  19.6 KB

    So, if I am getting this result correctly, we have situations where the bank okays and ZC doesn't AND (in this case) the process worked despite the missing token.

  3. #123
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,842
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by dbltoe View Post
    More information on the subject.

    Made sure I was the only one processing an order and monitored from cart addition to completed charge with the chrome console.

    The error log created was
    Code:
    [26-May-2022 21:54:53 UTC] 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
    Yet, the successful transaction was made one second later.

    Name:  topkayakerSquare.jpg
Views: 262
Size:  19.6 KB

    So, if I am getting this result correctly, we have situations where the bank okays and ZC doesn't AND (in this case) the process worked despite the missing token.
    i have been to said site and everything operated correctly as far as square looks.

    the error message indicates that the payment form was submitted, but the response from square was not on the form. any time you see line 234 in v1.0.1, that means the post of the form to your ZC server does NOT have any response from square.

    it does NOT mean you submitted a transaction, although you may/probably/most definitely (pick one) might have. looking at your square dashboard will tell you if you have. the error message means that if there was a response, it was not on the form and therefore ZC can not do anything with it because it does not know anything about it.

    this is the essence of the problem with OPC that was resolved with the changes made (and implemented on said site) with regards to OPC.

    if you are getting the error and then everything works properly a second later, you are most likely having a javascript problem. 2 event listeners are submitting the same form one after the other would be 1 guess.

    you are having other javascript errors on said site, which may cascade down to your problem. but in my latest review, everything looked fine to me. and the response from square was on the form. and i got an appropriate error:

    Your transaction failed due to an error: [PAN_FAILURE] Authorization error: 'PAN_FAILURE'

    that error comes from square.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

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

    Default Re: Square WebPay support thread.

    Unfortunately, I have no access to the Square Dashboard.

    I've sepent the day trying to find any javascipt error elsewhere. And, I had done that transaction in down for maintenance with only my IP as allowed.

    Watched the console through the whole process with no problems noted yet got the token notice one second before the success notice.

    I suspected older mods like Products with Attributes Stocck and Numinix Product Fields but can't find any evidence that they are the culprits.

    If you have any advice as to where else I might look, it would be greatly appreciated.

  5. #125
    Join Date
    Nov 2020
    Posts
    5
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    I believe I fixed the apostrophe error where the credit card form would not load when a users name or address contained the apostrophe character.

    I edited the file jscript_square_webPay.php inside the in includes/modules/pages/checkout_payment folder.

    lines 88 to 103

    PHP Code:
            async function verifyBuyer(payments, token) {
                const verificationDetails = {
                    amount: '<?= zen_round($order->info['total'], 2); ?>',
                    billingContact: {
                        addressLines: ["<?= $order->billing['street_address']; ?>", "<?= $order->billing['suburb']; ?>"],
                        familyName: "<?= $order->billing['lastname']; ?>",
                        givenName: "<?= $order->billing['firstname']; ?>",
                        email: "<?= $order->customer['email_address']; ?>",
                        country: "<?= $order->billing['country']['iso_code_2']; ?>",
                        phone: '<?= $order->customer['telephone']; ?>',
                        state: "<?= $order->billing['state']; ?>",
                        city: "<?= $order->billing['city']; ?>",
                    },
                    currencyCode: '<?= $order->info['currency']; ?>',
                    intent: 'CHARGE',
                };

    it worked for me but please verify this is the correct fix. thanks!

  6. #126
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,842
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by out1 View Post
    I believe I fixed the apostrophe error where the credit card form would not load when a users name or address contained the apostrophe character.

    I edited the file jscript_square_webPay.php inside the in includes/modules/pages/checkout_payment folder.

    lines 88 to 103

    PHP Code:
            async function verifyBuyer(payments, token) {
                const verificationDetails = {
                    amount: '<?= zen_round($order->info['total'], 2); ?>',
                    billingContact: {
                        addressLines: ["<?= $order->billing['street_address']; ?>", "<?= $order->billing['suburb']; ?>"],
                        familyName: "<?= $order->billing['lastname']; ?>",
                        givenName: "<?= $order->billing['firstname']; ?>",
                        email: "<?= $order->customer['email_address']; ?>",
                        country: "<?= $order->billing['country']['iso_code_2']; ?>",
                        phone: '<?= $order->customer['telephone']; ?>',
                        state: "<?= $order->billing['state']; ?>",
                        city: "<?= $order->billing['city']; ?>",
                    },
                    currencyCode: '<?= $order->info['currency']; ?>',
                    intent: 'CHARGE',
                };

    it worked for me but please verify this is the correct fix. thanks!
    have u downloaded the latest version 1.0.1? it was made available last week and addressed this problem by making use of the php addslashes function.

    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.

  7. #127
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,290
    Plugin Contributions
    125

    Default Re: Square WebPay support thread.

    Square WebPay install instructions available in the Zen Cart docs:

    https://docs.zen-cart.com/user/payment/square/
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #128
    Join Date
    Nov 2020
    Posts
    5
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    have u downloaded the latest version 1.0.1? it was made available last week and addressed this problem by making use of the php addslashes function.

    best.
    Thank you I will check the updated version, I had version 1.0 from May 21.

  9. #129
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    251
    Plugin Contributions
    4

    Default Re: Square WebPay support thread.

    Quote Originally Posted by out1 View Post
    Thank you I will check the updated version, I had version 1.0 from May 21.
    I know this is a simple update, but are there update instructions available?

  10. #130
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,842
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    Quote Originally Posted by royaldave View Post
    I know this is a simple update, but are there update instructions available?
    sorry no. i should have included something.

    it’s a simple file replacement. but nothing in the sdk has changed.

    you can copy all of the files without the need to copy the directory:

    for_upload/includes/modules/payment/square_webPay

    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.

 

 
Page 13 of 80 FirstFirst ... 311121314152363 ... LastLast

Similar Threads

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