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
    What causes the enabled flag in customers_cc table to be set to N?
    @swguy, this code is an evolution over many years work for some clients. during the pandemic, i decided to refactor it (it desperately needed it), and make it available to the community. this flag was part of the evolution, and in this module's current form is not used.

    Quote Originally Posted by swguy View Post
    Small suggested tweak: in
    ./includes/classes/observers/class.cim_admin_observer.php
    you could use BUTTON_DELETE_CARDS
    instead of the string "Delete Credit Cards".
    agreed. however that constant is not loaded at that point in the observer. i will look at where i am loading the payment modules and potentially move them so that the constant is available. little more complex, but i'm in agreement.

    thanks.
    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...

    In includes/modules/payment/authorizenet_cim.php, the function getCustomerCards() returns the query result. Did you intend the process the query result and return an array as was done in includes/modules/payment/authorizenet_cof.php ? Because the way it is now makes no sense - see the references to the results of getCustomerCards in admin/includes/classes/observers/class.cim_admin_observer.php line 65 and 72 for example

    $key = array_search($cc_index, array_column($cards, 'id'));
    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
    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
    In includes/modules/payment/authorizenet_cim.php, the function getCustomerCards() returns the query result. Did you intend the process the query result and return an array as was done in includes/modules/payment/authorizenet_cof.php ? Because the way it is now makes no sense - see the references to the results of getCustomerCards in admin/includes/classes/observers/class.cim_admin_observer.php line 65 and 72 for example

    $key = array_search($cc_index, array_column($cards, 'id'));
    perhaps this level of code discussion is better suited over at the publicly available github repository. i continuously update and release when necessary and perhaps it will be easier to point out your code issues in the latest version of the master branch.

    it does seem that a refactor is necessary as the one function does return a query result while the other function does return an array. i will have to take a closer look to see why this was done the way it was, and whether or not there is a bug there. it is entirely possible.
    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. #4
    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...

    Good point - will do.
    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.

  5. #5
    Join Date
    Sep 2014
    Location
    Indiana
    Posts
    123
    Plugin Contributions
    0

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

    I'm having just a couple of issues getting the plug-in to work w/ ZC 1.5.7c; PHP 7.4.25; MySQL 5.5.5-10.3.32-MariaDB

    1. When confirming final checkout, I get an error:
    "Transaction Failed
    Error code : 11
    Error message : A duplicate transaction has been submitted."

    Even though its not a duplicate - first time, new dollar amount, etc.


    2. Also, an error log is being created with every attempt indicating a fatal PHP error due to an incorrect datetime value. I've attached the logfile on that one.

    I've rechecked to ensure that everything was uploaded and the data table looks right.

    This may be a conflict w/ our template or some other mod, but wanted to throw it out here first to see if anyone has any ideas.

    Thank you!

    Matt
    Attached Files Attached Files

  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 apollowilcox View Post
    I'm having just a couple of issues getting the plug-in to work w/ ZC 1.5.7c; PHP 7.4.25; MySQL 5.5.5-10.3.32-MariaDB

    1. When confirming final checkout, I get an error:
    "Transaction Failed
    Error code : 11
    Error message : A duplicate transaction has been submitted."

    Even though its not a duplicate - first time, new dollar amount, etc.


    2. Also, an error log is being created with every attempt indicating a fatal PHP error due to an incorrect datetime value. I've attached the logfile on that one.

    I've rechecked to ensure that everything was uploaded and the data table looks right.

    This may be a conflict w/ our template or some other mod, but wanted to throw it out here first to see if anyone has any ideas.

    Thank you!

    Matt
    hey matt,
    lets address the error log and see if the duplicate transaction gets fixed; which i think it will.

    it seems that you have stumbled upon a problem that i have already addressed, but unfortunately is not up on the zen-cart plugin page. bad carl, bad!

    it is related to strict mode on newer versions of mysql.

    try and replace:

    includes/modules/payment/authorizenet_cim.php

    with this file here:

    https://raw.githubusercontent.com/pr...izenet_cim.php

    you can just copy and paste the file from there. alternatively i have attached it here:

    authorizenet_cim.zip

    let me know if that works. if so, i will re-upload so that it is up on the plugins for all to enjoy.

    best.
    p.
    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
    Sep 2014
    Location
    Indiana
    Posts
    123
    Plugin Contributions
    0

    Default Re: Authorize.net CIM - incorrect datetime Value

    Lol! Thanks Carl.
    I uploaded the new code and upon confirming the test order, got the error screen and when I refreshed, I was completely logged out.

    The same log file/ error of 'incorrect datetime value.'

    Confirmed that the new file did upload and did it again just to make sure. Retried... same.

    myDEBUG-20211123-103135-876701-error.zip

 

 

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