Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 821

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

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

    Just to add another confirm with details for Google:

    Had the Square "Access Token" issue described in prior posts. Page showed an HTTP 417 error.
    Access Token was not updated in the database.

    Applied fix mentioned in Post 264:
    https://www.zen-cart.com/showthread....87#post1355387

    Issue resolved.
    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.

  2. #2
    Join Date
    Jan 2009
    Posts
    26
    Plugin Contributions
    0

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

    I found the problem just don't know how to fix it. The problem is in my template/common/html_header.php. Once I remove this I can except payments with not problem but then my "success' page is missing "contact us" and other buttons. I think the problem is in the jscript (the html_header.php points to jscript but my template doesn't have a jscript folder). Here is my html_header.php:

    <?php
    /**
    * Common Template
    *
    * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
    *
    * @package templateSystem
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: html_header.php 15761 2010-03-31 19:31:27Z drbyte $
    * @version $Id: html_header.php 0000 2007-02-25 10:37:00Z kuroi $
    * Based on a post by duncanad
    */
    /**
    * load the module for generating page meta-tags
    */
    require(DIR_WS_MODULES . zen_get_module_directory('meta_tags.php'));
    /**
    * output main page HEAD tag and related headers/meta-tags, etc
    */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
    <title><?php echo META_TAG_TITLE; ?></title>
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="<?php echo STORE_NAME .', ' . TEMPLATE_DESIGN_TEXT . ', shopping cart program by Zen Cart&trade;, http://www.zen-cart.com eCommerce';?>" />
    <meta name="generator" content="shopping cart program by Zen Cart&trade;, http://www.zen-cart.com eCommerce" />
    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance') { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php } ?>
    <?php if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
    <?php } //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />
    <?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
    <link rel="canonical" href="<?php echo $canonicalLink; ?>" />
    <?php } ?>

    <?php
    /**
    * load all template-specific stylesheets, named like "style*.css", alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css');
    while(list ($key, $value) = each($directory_array)) {
    echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
    }
    /**
    * load all template-specific stylesheets, named like "ie_*.css", alphabetically
    * for stylesheets targeted at all versions of IE
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ie_/', '.css');
    while(list ($key, $value) = each($directory_array)) {
    echo '<!--[if IE]>' . "\n";
    echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />' . "\n";
    echo '<![endif]-->' . "\n";
    }
    /**
    * load all template-specific stylesheets, named like "ie7*.css", alphabetically
    * for stylesheets targeted at specific versions of IE
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ie[5-9]_/', '.css');
    while(list ($key, $value) = each($directory_array)) {
    $ver = substr ($value, 2, 1);
    echo '<!--[if IE ' . $ver . ']>' . "\n";
    echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />' . "\n";
    echo '<![endif]-->' . "\n";
    }
    /**
    * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.
    */
    $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : '';
    $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
    $tmp_pagename = ($this_is_home_page) ? 'index_home' : $current_page_base;
    if ($current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename = $current_page_base . (int)$ezpage_id;
    $sheets_array = array('/' . $_SESSION['language'] . '_stylesheet',
    '/' . $tmp_pagename,
    '/' . $_SESSION['language'] . '_' . $tmp_pagename,
    '/c_' . $cPath,
    '/' . $_SESSION['language'] . '_c_' . $cPath,
    '/m_' . $manufacturers_id,
    '/' . $_SESSION['language'] . '_m_' . (int)$manufacturers_id,
    '/p_' . $tmp_products_id,
    '/' . $_SESSION['language'] . '_p_' . $tmp_products_id
    );
    while(list ($key, $value) = each($sheets_array)) {
    //echo "<!--looking for: $value-->\n";
    $perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . $value . '.css';
    if (file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' . $perpagefile .'" />'."\n";
    }

    /**
    * load printer-friendly stylesheets -- named like "print*.css", alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^print/', '.css');
    sort($directory_array);
    while(list ($key, $value) = each($directory_array)) {
    echo '<link rel="stylesheet" type="text/css" media="print" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
    }

    /**
    * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
    while(list ($key, $value) = each($directory_array)) {
    echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
    }

    /**
    * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
    */
    $directory_array = $template->get_template_part($page_directory, '/^jscript_/', '.js');
    while(list ($key, $value) = each($directory_array)) {
    echo '<script type="text/javascript" src="' . $page_directory . '/' . $value . '"></script>' . "\n";
    }

    /**
    * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php');
    while(list ($key, $value) = each($directory_array)) {
    /**
    * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
    * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
    */
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value); echo "\n";
    }
    /**
    * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
    */
    $directory_array = $template->get_template_part($page_directory, '/^jscript_/');
    while(list ($key, $value) = each($directory_array)) {
    /**
    * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
    * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
    */
    require($page_directory . '/' . $value); echo "\n";
    }

    // DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';


    ?>
    </head>
    <?php // NOTE: Blank line following is intended: ?>

  3. #3
    Join Date
    Mar 2018
    Location
    Idaho,USA
    Posts
    23
    Plugin Contributions
    0

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

    Zencart Version 1.5.7d. not an upgrade.
    installed using zc_install.
    PHP version 7.4.23.
    Fluorspar template version 1.8.
    www.legendcycle.net

    I setup Square_webpay for the first time. I've been using PayPal but thought I'd try Square. the module setup as the instruction said it should but I have no credit card button on my checkout page. I'm at aloss as to what to do.

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

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

    Your site is showing it is not secure. Do you have an SSL installed?
    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.

  5. #5
    Join Date
    Mar 2018
    Location
    Idaho,USA
    Posts
    23
    Plugin Contributions
    0

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

    Yes I have SSL installed and both Configure.PHP files read HTTPS. Enable SSL is true and enable SSL catalog is true. What else can I do to make it secure?
    Last edited by Beav; 9 Feb 2023 at 01:15 AM.

  6. #6
    Join Date
    Jan 2009
    Posts
    26
    Plugin Contributions
    0

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

    having trouble figuring out how to fix the SQ-NONCE-FAILURE error when trying to process CC via Square.

    helmet-decals.com

    I have 3 errors (2 are "ReferenceError: Can't find variable: $" with index.php line references - lines 198 and 287). The other is "Failed to load resource: the server responded with a status of 404 (Not Found)" referencing https://helmet-decals.com/includes/t.../sb_header.png. (which doesn't exist)

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

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

    Quote Originally Posted by helmetdecals View Post
    having trouble figuring out how to fix the SQ-NONCE-FAILURE error when trying to process CC via Square.

    helmet-decals.com

    I have 3 errors (2 are "ReferenceError: Can't find variable: $" with index.php line references - lines 198 and 287). The other is "Failed to load resource: the server responded with a status of 404 (Not Found)" referencing https://helmet-decals.com/includes/t.../sb_header.png. (which doesn't exist)
    Did you apply the changes that @DrByte suggested in post #264 of this support-thread?

  8. #8
    Join Date
    Jan 2009
    Posts
    26
    Plugin Contributions
    0

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

    I am using the Zencart_zen template. it works in the templates that come with Zen-Cart

  9. #9
    Join Date
    Jan 2009
    Posts
    26
    Plugin Contributions
    0

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

    I did and it did not work. I can get it to work with the default templates from zen-cart but not with my custom "Zencart_zen". btw this custom does not have a jscript folder

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

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

    IMPORTANT NOTE:

    Square made some changes on March 13, 2019 which change how the module authorization tokens work.
    You NEED to update your module to version 0.97 (just released today) in order for your token refreshes to work properly. And new installs won't work if you're using an older version of this module (ie: 0.96 or older).

    This 0.97 update includes TWO important factors:
    a) the square_handler.php update mentioned a few posts back (#264 on Feb 28)
    b) a forced (slightly older) API Version header sent with each transaction (so you don't have to override it manually in your Square account)

    Fortunately, if you were already using 0.96, updating to 0.97 involves only updating 2 files. See details in the module download at: Square Payments for Zen Cart
    .

    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.

 

 
Page 3 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