Results 1 to 2 of 2

Authorize.net SIM does not send invoice number

This is a discussion on Authorize.net SIM does not send invoice number within the Authorize.net forums, part of the Payment Modules category; I couldn't help to notice that there is no variable set for the invoice number to go to authorize's gateway ...

      
  1. #1
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    637
    Blog Entries
    1
    Rep Power
    27


    Question Authorize.net SIM does not send invoice number

    I couldn't help to notice that there is no variable set for the invoice number to go to authorize's gateway web page. Does anyone know what variable that is?

    My investigation led me to this page authorizenet_cc_sim.php

    Code:
      tep_draw_hidden_field('x_invoice_num', "need the variable!");
    thanks!
    bh

  2. #2
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    637
    Blog Entries
    1
    Rep Power
    27


    Default Re: Authorize.net SIM does not send invoice number

    fixed -

    place the following code inside of the process_button() function...

    Code:
                    $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;
    and add the following variable to the list below it....

    Code:
    tep_draw_hidden_field('x_invoice_num', $next_inv) .
    Hope this helps someone out

Similar Threads

  1. Independent invoice number
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-31-2007, 06:01 AM
  2. Authorize.net and Invoice Number
    By Mushroom in forum osCmax v2 Customization/Mods
    Replies: 8
    Last Post: 03-17-2007, 02:02 PM
  3. Independent invoice number
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-16-2007, 05:50 AM
  4. 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
  5. 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

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
  •