Results 1 to 9 of 9

Authorize.net and Invoice Number

This is a discussion on Authorize.net and Invoice Number within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I noticed that the Authorize.net module doesn't seem to be passing the generated invoice number to the gateway. Is there ...

      
  1. #1
    Member
    Join Date
    Dec 2006
    Posts
    83
    Rep Power
    6


    Default Authorize.net and Invoice Number

    I noticed that the Authorize.net module doesn't seem to be passing the generated invoice number to the gateway. Is there a switch I might have missed?
    We are small enough that we can locate the name of the customer to track down an order, but the invoice number would be so much easier.
    Our last shopping cart did it.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: Authorize.net and Invoice Number

    You may need to make a hack to the Anet module, as it was not coded to pass the invoice #. I think this post has a hack that will get you in the right direction
    [CONTRIBUTION] Authorize Net AIM module - osCommerce Community Support Forums

    Note that the filename is different as the post is talking about a newer version of the anet module.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member
    Join Date
    Dec 2006
    Posts
    83
    Rep Power
    6


    Default Re: Authorize.net and Invoice Number

    Thanks , but there is no code at all to manipulate the invoice/order id. The only code deletes the order if the charge fails.
    I can tweak stuff, but this would require a whole new approach and I don't know what Authorize.net is looking for to place the invoice number.
    No biggie, I'll just put it in my wishlist for next Christmas.

  4. #4
    Member
    Join Date
    Dec 2006
    Posts
    83
    Rep Power
    6


    Default Re: Authorize.net and Invoice Number

    I went poking around and used THIS as a 'donor' . I actually broke my modules, as in wouldn't display. It blocked viewing any of the payment modules in Admin and gave me the famous white screen when trying to check out at the select payment step. So I think I might not do THAT again.
    I used a chunk of code that determined the order_id and then a single line that passed x_Invoice_Number to Authorize.net.
    But Like I said...I broke it. So I reverted.
    Last edited by Mushroom; 01-01-2007 at 10:12 AM.

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: Authorize.net and Invoice Number

    You got me thinking... I looked and there is a newer Authorize.net AIM module out that looks like it already has the order number incorporated into it.

    Here it is:
    osCommerce: Authorize Net AIM module (GPL)

    You may simply want to remove the module in osCMax and add the new one. You should grab the install instructions for the original ADC module in osCMax and reverse them. Then install the new module.

    Make sure you do a backup PRIOR to attempting this, and I really suggest not doing the initial attempt on a live site. Make a duplicate of your site and use it for testing the changes...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  6. #6
    Member
    Join Date
    Dec 2006
    Posts
    83
    Rep Power
    6


    Default Re: Authorize.net and Invoice Number

    That's a possibility. I guess it begs the question I asked in another thread. Where would one find the correct documentation, not knowing which module was incorporated and with what changes ?
    Keep Smiling..

  7. #7
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: Authorize.net and Invoice Number

    But you do know the module version:
    Authorize.Net Consolidated Credit Card v1.7b

    I have to update this site with all the specs for osCMax, but the original post is here:
    osCommerce Documentation by OSCdox :: osCMax v2.0 RC1 Released!


    I believe it has been dropped from the contributions section at osCommerce for some reason or another. I am attaching the full mod here.



    Attached Files Attached Files
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  8. #8
    New Member
    Join Date
    Apr 2005
    Posts
    15
    Rep Power
    0


    Default Re: Authorize.net and Invoice Number

    This codding will pass your order number as an invoice number to Authorize.net:

    gp to includes/module/authorizenet_direct.php, add this coding in about line14: (right before $xx=''

    $next_inv = '';
    $inv_id = tep_db_query("select orders_id from " . TABLE_ORDERS . " order by orders_id DESC limit 1");
    $last_inv = tep_db_fetch_array($inv_id);
    $next_inv = $last_inv['orders_id']+1;

    in about line38, add:
    x_invoice_num => "$next_inv",

    that's it!

    CJ

  9. #9
    Member
    Join Date
    Dec 2006
    Posts
    83
    Rep Power
    6


    Default Re: Authorize.net and Invoice Number

    That hit the spot!
    A couple of minor points. I am using the distributed version from RC3. Because of all the comments in that file the block to insert is actually line 40 and the other item is already in place but defines it as "$insert_id", .
    I only posted that for those who might have troubles finding the spots. Thank you very much for making that module a bit more friendly!
    Now, If I only knew what I was doing!

Similar Threads

  1. get rid of c-number & p-number in SEO url's
    By amilo in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 07-31-2006, 04:39 PM
  2. How can i NOT send a INVOICE??
    By walliley in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 04-25-2005, 04:22 AM
  3. Having Order # Appear in Authorize.net as Invoice #
    By stewj1 in forum osCMax v1.7 General Mods Discussion
    Replies: 0
    Last Post: 02-02-2005, 09:15 PM
  4. Changing the invoice
    By Dykkeren in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 02-20-2004, 01:47 AM
  5. Invoice modification - Please help!
    By Sejo in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-26-2003, 12:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •