Results 1 to 10 of 821

Hybrid View

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

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by dkerfoot View Post
    Thanks! I've updated to 1.5.6c and confirmed that the standard responsive_classic template fixes the error while it remains a problem with the cold_steel template. I appreciate you taking the time to set me on the right path.

    -Doug
    Ah, yes, that cold_steel template far out-dates the introduction of the Zen Cart AJAX framework. If you want to continue using cold_steel, just copy the zc156c's responsive_classic/jscript/jscript_framework.php to cold_steel/jscript. That version of the file simply brings in the common, template_default, version of the framework.

    Note, though, that there will be a significant number of changes needed for that template to continue operation under current versions of PHP.
    Last edited by lat9; 14 Jan 2020 at 04:18 PM. Reason: Added note

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

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Any error in input of the cc data is handled by https://js.squareup.com/v2/paymentform which is linked to from jscript_square.php.
    How can I change the language of the error messages? Error messages are
    • Credit card number is not valid
    • CVV is not valid
    • Expiration date is not valid

    I need Japanese.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by todoonada View Post
    Any error in input of the cc data is handled by https://js.squareup.com/v2/paymentform which is linked to from jscript_square.php.
    How can I change the language of the error messages? Error messages are
    • Credit card number is not valid
    • CVV is not valid
    • Expiration date is not valid

    I need Japanese.
    I asked Square about it, and they said:
    Quote Originally Posted by SquareSupport
    Currently all payment form errors are returned in English; we don’t offer any translations at this time, so it would be up to you to provide those translations if needed
    So I guess that means needing to write some custom javascript, which you'd fire from jscript_square.php before the paymentform js is loaded.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by DrByte View Post
    I asked Square about it, and they said:


    So I guess that means needing to write some custom javascript, which you'd fire from jscript_square.php before the paymentform js is loaded.
    Thank you.
    I tried that changing jscript_square.php. First I made a little test. I changed the line
    console.error("Encountered errors:");
    to
    console.error("Test");

    My changed line shows up in the source code of the page, but the console still shows "Encountered errors:" instead of "Test".

  5. #5
    Join Date
    Jan 2020
    Location
    UK
    Posts
    2
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    I am unable to make this module work and am confronted with the SQ-NONCE-FAILURE error at every turn.

    I am running zencart 1.5.6c on php 7.3

    I have check and tried all the previous advise in this thread and the Square set up common problems, but still no luck. All files are in the right place, the module is installed and activated with a valid token and date. I also have no js errors... I have even removed my custom js code and just tried with plain jquery (deferred and not).

    One thing I have noticed is that in the console the following error is logged...

    0: Unable to get property 'SavePersonalAndPaymentData' of undefined or null reference - Autoformfill_ContentScript.js (1,20660)

    I am getting a nonce code, I amended the code to log this in the console to ensure one is generated... and even unhid the input field that this is placed in to see it is actually placed in the input field before the submit confinues.... but it just refuses to work.

    What else can I try, I have been at this all day, and going crazy
    Last edited by BRDS; 18 Jan 2020 at 07:46 PM.

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

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Have you tried backing off of 7.3? No problems here with 7.2
    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
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by BRDS View Post
    I am unable to make this module work and am confronted with the SQ-NONCE-FAILURE error at every turn.

    I am running zencart 1.5.6c on php 7.3

    I have check and tried all the previous advise in this thread and the Square set up common problems, but still no luck. All files are in the right place, the module is installed and activated with a valid token and date. I also have no js errors... I have even removed my custom js code and just tried with plain jquery (deferred and not).

    One thing I have noticed is that in the console the following error is logged...

    0: Unable to get property 'SavePersonalAndPaymentData' of undefined or null reference - Autoformfill_ContentScript.js (1,20660)

    I am getting a nonce code, I amended the code to log this in the console to ensure one is generated... and even unhid the input field that this is placed in to see it is actually placed in the input field before the submit confinues.... but it just refuses to work.

    What else can I try, I have been at this all day, and going crazy
    I'm pretty sure your javascript error is interfering with the execution of the rest of the script. Whatever conflicts are introduced by other javascript on your site will need to be addressed before it will work properly for you.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jan 2020
    Location
    UK
    Posts
    2
    Plugin Contributions
    0

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by DrByte View Post
    Quote Originally Posted by BRDS View Post
    I am unable to make this module work and am confronted with the SQ-NONCE-FAILURE error at every turn.

    I am running zencart 1.5.6c on php 7.3

    I have check and tried all the previous advise in this thread and the Square set up common problems, but still no luck. All files are in the right place, the module is installed and activated with a valid token and date. I also have no js errors... I have even removed my custom js code and just tried with plain jquery (deferred and not).

    One thing I have noticed is that in the console the following error is logged...

    0: Unable to get property 'SavePersonalAndPaymentData' of undefined or null reference - Autoformfill_ContentScript.js (1,20660)

    I am getting a nonce code, I amended the code to log this in the console to ensure one is generated... and even unhid the input field that this is placed in to see it is actually placed in the input field before the submit confinues.... but it just refuses to work.

    What else can I try, I have been at this all day, and going crazy
    I'm pretty sure your javascript error is interfering with the execution of the rest of the script. Whatever conflicts are introduced by other javascript on your site will need to be addressed before it will work properly for you.
    The error that is logged is created by Square, there are no other js errors. I have even removed all js on the site and just left jquery, but still the same issue. I really do not think the js is the issue with this one.

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

    Default Re: Square Payment Module for Zen Cart [Support Thread]

    Quote Originally Posted by todoonada View Post
    Thank you.
    I tried that changing jscript_square.php. First I made a little test. I changed the line
    console.error("Encountered errors:");
    to
    console.error("Test");

    My changed line shows up in the source code of the page, but the console still shows "Encountered errors:" instead of "Test".
    I tried again and for some unknown reason it works now. No idea what I did wrong the first time. I did the following quick'n dirty fix:
    After this line in jscript_square.php
    error_html += "<li> " + error.message + " </li>";
    I added
    error_html=error_html.replace("Credit card number is not valid","Translation Text Here");
    error_html=error_html.replace("CVV is not valid","Translation Text Here");
    error_html=error_html.replace("Expiration date is not valid","Translation Text Here");

 

 

Similar Threads

  1. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 109
    Last Post: 1 Dec 2024, 01:36 PM
  2. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 127
    Last Post: 26 Mar 2021, 04:13 PM
  3. v154 Support Thread: AddToAny for Zen Cart (The Universal Sharing Platform)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 8 Apr 2019, 02:39 PM
  4. Layaway Payment Module Support Thread
    By Danielle in forum Addon Payment Modules
    Replies: 0
    Last Post: 21 Nov 2006, 06:43 AM

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