Results 1 to 10 of 199

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Authorize.net API with Card on File transactions support thread...

    Quote Originally Posted by swguy View Post
    I'd like the Keep Card on File checkbox to default to unchecked. I would have thought changing the call to zen_draw_checkbox_field in includes/modules/payment/authorizenet_cim.php line 200 would do it, but it seems stuck on checked. Any thoughts?
    hi @swguy,
    yeah, that's what i would think as well. that code looks wrong there. not sure how it got that way.... have you tried:

    PHP Code:
    if (!zen_in_guest_checkout()) {
                    
    $selection['fields'][] = array(
                        
    'title' => 'Keep Card on File',
                        
    'field' => zen_draw_checkbox_field('authorizenet_cim_save'''false),
        
    //                    '' . ' id="' . $this->code . '-save"' . $onFocus),
                        
    'tag' => $this->code '-save'
                    
    );
                } 
    that seems to work for me. i tested on a base157 install as well as on a customized 157a site.

    it does not look like that other stuff is doing whatever it was i intended it to do there.

    i will fix that in the next release. thanks for pointing it out!

    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.

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

    Default Re: Authorize.net API with Card on File transactions support thread...

    LOL I got suckered in by the incorrect bracket placement! That's why just switching to false didn't work. Thanks for taking a second look.
    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.

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

    Default Re: Authorize.net API with Card on File transactions support thread...

    Small bug in admin/includes/classes/authnet_order.php line 28.

    You have:
    include DIR_FS_CATALOG . DIR_WS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/authnet_order.php';

    You want:

    include DIR_FS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/authnet_order.php';
    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.

  4. #4
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Authorize.net API with Card on File transactions support thread...

    Quote Originally Posted by swguy View Post
    Small bug in admin/includes/classes/authnet_order.php line 28.

    You have:
    include DIR_FS_CATALOG . DIR_WS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/authnet_order.php';

    You want:

    include DIR_FS_ADMIN . DIR_WS_LANGUAGES . $_SESSION['language'] . '/authnet_order.php';
    hey scott,
    happy new year!

    thanks for taking a look.

    are you referring to the fact that the code as implemented has an extra slash '/' in there?
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

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

    Default Re: Authorize.net API with Card on File transactions support thread...

    The code you have duplicates the sitename. It yields

    /Users/scott/Sites/mysite//mysite/admin/includes/languages/english/authnet_order.php
    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.

  6. #6
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Authorize.net API with Card on File transactions support thread...

    Quote Originally Posted by swguy View Post
    The code you have duplicates the sitename. It yields

    /Users/scott/Sites/mysite//mysite/admin/includes/languages/english/authnet_order.php
    i did the following:
    PHP Code:
    <?php
        
    require 'includes/application_top.php';

        echo 
    "-------->" DIR_FS_CATALOG DIR_WS_ADMIN "<---------<br>";
        echo 
    "-------->" DIR_FS_ADMIN "<---------<br>";
    results in:
    Code:
    -------->/var/www/la155//mybloodyadmin/<---------
    -------->/var/www/la155/mybloodyadmin/<---------
    (names changed to protect the innocent...)

    what server software are you running? i'm running:

    HTTP Server: Apache/2.4.38 (Debian)
    PHP Version: 7.4.13 (Zend: 3.4.0)

    if you are running windows:

    https://docs.zen-cart.com/user/first...-not-supported

    if you are not running windows, by all means, i would love to explore further.

    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. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: Authorize.net API with Card on File transactions support thread...

    I am in a subfolder of document root called demo_157a. Document root is /Users/scott/Sites/.

    MacOS (BSD Unix) - Zen Cart 1.5.7a, PHP 7.2 under MAMP. (Just a test site.)

    echo "-------->" . DIR_FS_CATALOG . DIR_WS_ADMIN . "<---------<br>";

    gives

    -------->/Users/scott/Sites/demo_157a//demo_157a/admin/<---------

    DIR_WS_ADMIN starts with the subfolder when one is used.
    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.

 

 

Similar Threads

  1. v155 Saving Credit Card Info with Authorize.Net
    By magneto in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 25 Jan 2021, 10:28 PM
  2. v154 Having Issues With Duplicate Transactions in Authorize.net
    By CSGODeimos in forum General Questions
    Replies: 1
    Last Post: 27 Sep 2017, 02:53 PM
  3. v151 Duplicate transactions authorize.net AIM
    By badarac in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Aug 2016, 03:52 PM
  4. Replies: 1
    Last Post: 31 May 2006, 05:06 PM

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