Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 821

Hybrid View

  1. #1
    Join Date
    Aug 2016
    Posts
    20
    Plugin Contributions
    0

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

    Zen Cart version: 1.5.5f
    Plugin version: 0.91
    Template used: Fidelity

    When I try to go through the checkout process, on Step 2, Payment Information, I receive the following error:
    "We could not initiate your transaction because of a problem with the card data you entered. Please correct the card data, or report this error to the Store Owner: SQ-NONCE-FAILURE"

    I've been through the FAQ which suggests
    "The module expects the checkout page to have a <form> element with a name='checkout_payment' in it."

    I've checked the HTML and there is a form that has the name "checkout_payment."

    It also suggets making sure that jscript_framework.php has been copied to /includes/templates/YOUR_TEMPLATE_FOLDER/jscript (yes, I've copied it to my template folder, not YOUR_TEMPLATE_FOLDER). I copied the file there myself.

    It works well under the Responsive Classic Template, so obviously there's an issue in the Fidelity template.

    Any suggestions?

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

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

    Quote Originally Posted by Gamethrall View Post
    It works well under the Responsive Classic Template, so obviously there's an issue in the Fidelity template.
    Whether it's a general problem with that template or just with whatever javascript the template uses and/or javascript you've added, if there are any javascript errors on the checkout pages, the Square code won't be able to do its task, and therefore it won't receive a NONCE, and therefore it can't complete a payment.

    Fix your javascript errors/conflicts. See the browser's javascript console for details.
    .

    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.

  3. #3
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

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

    I'm seeing the following error in the logs after an attempt to use Square.

    PHP Warning: Illegal string offset 'id' in /home/devsite/public_html/includes/modules/payment/square.php on line 142

    The module code hasn't been edited in any way.
    Site is a clean install of 1.5.5f
    Server is running PHP Version: 5.6.35 (Zend: 2.6.0). It was on PHP 7.1.12, but I switched to an older PHP version to see if it cleared the issue. No change.

    I checked the array key is wrapped in quotes, and it is.

    $sql = "SELECT zone_id FROM " . TABLE_ZONES_TO_GEO_ZONES . " WHERE geo_zone_id = '" . (int)MODULE_PAYMENT_SQUARE_ZONE . "' AND zone_country_id = '" . (int)$order->billing['country']['id'] . "' ORDER BY zone_id";

    Any suggestions?

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

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

    Quote Originally Posted by strelitzia View Post
    I'm seeing the following error in the logs after an attempt to use Square.

    PHP Warning: Illegal string offset 'id' in /home/devsite/public_html/includes/modules/payment/square.php on line 142

    The module code hasn't been edited in any way.
    Site is a clean install of 1.5.5f
    Server is running PHP Version: 5.6.35 (Zend: 2.6.0). It was on PHP 7.1.12, but I switched to an older PHP version to see if it cleared the issue. No change.

    I checked the array key is wrapped in quotes, and it is.

    $sql = "SELECT zone_id FROM " . TABLE_ZONES_TO_GEO_ZONES . " WHERE geo_zone_id = '" . (int)MODULE_PAYMENT_SQUARE_ZONE . "' AND zone_country_id = '" . (int)$order->billing['country']['id'] . "' ORDER BY zone_id";

    Any suggestions?
    That's essentially saying that $order->billing['country']['id'] doesn't exist, which suggests that $order->billing['country'] isn't defined as an array ... which suggests something's amuck with the address, which suggests that either the customer is connected to an invalid address (ie: a prior address_book entry that no longer has a corresponding country record), or your order class isn't populating the country data properly when passing it to the module. You didn't say whether this was triggered by a customer purchase or if it was from an Admin attempt to look up an order paid by Square.
    Lots of moving parts.
    It's only a Warning, so isn't causing a fatal/crash (blank page) situation.

    Can you shed more light on the actual transaction and why the country data wouldn't be set properly when that Warning was generated?
    .

    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.

  5. #5
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

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

    Quote Originally Posted by DrByte View Post
    You didn't say whether this was triggered by a customer purchase or if it was from an Admin attempt to look up an order paid by Square.
    This error is being logged when viewing an order in admin.
    Address and country details all appear to be correct.

  6. #6
    Join Date
    Aug 2016
    Posts
    20
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    Whether it's a general problem with that template or just with whatever javascript the template uses and/or javascript you've added, if there are any javascript errors on the checkout pages, the Square code won't be able to do its task, and therefore it won't receive a NONCE, and therefore it can't complete a payment.

    Fix your javascript errors/conflicts. See the browser's javascript console for details.
    Thank you, DrByte. I haven't added any code myself. I'll see about finding someone to assist with the errors.

  7. #7
    Join Date
    Apr 2018
    Location
    Texas
    Posts
    3
    Plugin Contributions
    0

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

    Hello and good day.
    First time poster, new Zen-Cart user, 26 years of internet experience.

    I have just installed Zen-Cart v1.5.4 on a clean domain with PHP 7.0, everything is baby powder fresh. I did install the sample items during set-up.
    I renamed my /admin/ folder, deleted the install folder, and all recommended steps of making the config files read only.
    Everything seems to be working as it should for Zen Cart.
    I downloaded Square Payments for Zen Cart - Version: 0.90
    I uploaded the specified files in the correct locations. I have confirmed this.
    I now go to Zen Cart Admin, Modules->Payments menu, and there is no Square option or entry.

    I'm stuck at this point.

    If anyone could assist me with where my error was I would be grateful.

    Sidenote: If you access this forum using a VPN there is an automatic permaban in place that locks your account and registered email, that was fairly annoying. Future correspondance may be from Blackburd3,4,5,etc depending on whether or not I remember to disable it temporarily.

    -YIS
    Last edited by Blackburd2; 25 Apr 2018 at 07:01 PM.

  8. #8
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

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

    Quote Originally Posted by Blackburd2 View Post
    Hello and good day.
    First time poster, new Zen-Cart user, 26 years of internet experience.

    I have just installed Zen-Cart v1.5.4 on a clean domain with PHP 7.0, everything is baby powder fresh. I did install the sample items during set-up.
    I renamed my /admin/ folder, deleted the install folder, and all recommended steps of making the config files read only.
    Everything seems to be working as it should for Zen Cart.
    I downloaded Square Payments for Zen Cart - Version: 0.90
    I uploaded the specified files in the correct locations. I have confirmed this.
    I now go to Zen Cart Admin, Modules->Payments menu, and there is no Square option or entry.

    I'm stuck at this point.

    If anyone could assist me with where my error was I would be grateful.

    Sidenote: If you access this forum using a VPN there is an automatic permaban in place that locks your account and registered email, that was fairly annoying. Future correspondance may be from Blackburd3,4,5,etc depending on whether or not I remember to disable it temporarily.

    -YIS
    Good thing it's a brand new install, because it's already time to upgrade. Issue is/was ZC 1.5.4 with php 7.0 as can be seen in the server requirements section of this website from the main page (http://www.zen-cart.com/content.php?...o-run-zen-cart).

    Basically, and for continued troubleshooting, you are probably experiencing a partial blank page for which there is a FAQ that would help identify where the issue is (http://www.zen-cart.com/content.php?124-blank-page). Specifically though one of the payment modules (no longer in ZC 1.5.5) is not php 7.x compatible.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

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

    I have installed when clicking the green button then logging into square the redirect says this page is not working, I have ssl and was able with a different cart to enable square, htaccess just says rewrite enabled. the redirect is correct in Oauth. at a loss, using 1.55f..default template.

  10. #10
    Join Date
    Mar 2008
    Posts
    3
    Plugin Contributions
    0

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

    Quote Originally Posted by clebarron View Post
    I have installed when clicking the green button then logging into square the redirect says this page is not working, I have ssl and was able with a different cart to enable square, htaccess just says rewrite enabled. the redirect is correct in Oauth. at a loss, using 1.55f..default template.
    Sorry didnt see these pages, the fix worked for me and no longer a problem

 

 
Page 2 of 4 FirstFirst 1234 LastLast

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