Authorize.net does not report invoice or items bought

Bug #500919 reported by jay
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenFreeway
In Progress
Undecided
Unassigned

Bug Description

The authorize dot net module does not report the invoice/order number and does not include what was purchased. The email that authorize dot net send back does not have this information which is needed to know if an order has been paid for or not.
Thank you
Jay

Revision history for this message
jay (jay-hjmsoftware) wrote :

The attached file is the latest oscommerce Authorize.net file, This one has been certified by Authorize.net and includes cvv check, this is the one that we should be using.
Thanks

Revision history for this message
jay (jay-hjmsoftware) wrote :

I have the order number going to authorize.net now, if you want that code let me know.
Thanks
Jay

Revision history for this message
jay (jay-hjmsoftware) wrote :
Download full text (4.1 KiB)

code changes to add invoice number to the cc receipt starting at about line 239 function process_button
    function process_button() {
      global $order,$FSESSION,$FREQUEST;
//add hjmsoftware to add order number
$last_order_id = tep_db_query("select * from ".TABLE_ORDERS." order by orders_id desc limit 1");
$last_inv = tep_db_fetch_array($last_order_id);
$new_order_id = $last_inv['orders_id'] + 1;

// end code

      $sequence = rand(1, 1000);
      $process_button_string = tep_draw_hidden_field('x_Login', MODULE_PAYMENT_AUTHORIZENET_LOGIN) .
          tep_draw_hidden_field("x_delim_char","|") .
        tep_draw_hidden_field("x_delim_data","TRUE") .
        tep_draw_hidden_field("x_url","FALSE") .
       // tep_draw_hidden_field("x_test_request","TRUE") .
        tep_draw_hidden_field("x_type","AUTH_CAPTURE") .
        tep_draw_hidden_field("x_password",MODULE_PAYMENT_AUTHORIZENET_TXNKEY) .
        tep_draw_hidden_field("x_relay_response","FALSE") .
                               tep_draw_hidden_field('x_Method', ((MODULE_PAYMENT_AUTHORIZENET_METHOD == 'Credit Card') ? 'CC' : 'ECHECK')) .
                               tep_draw_hidden_field('x_Version', '3.1') .
                               tep_draw_hidden_field('x_Card_Num', $this->cc_card_number) .
                               tep_draw_hidden_field('x_Exp_Date', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) .
                               tep_draw_hidden_field('x_Amount', number_format($order->info['total'], 2,'.','')) .
                               tep_draw_hidden_field('x_Cust_ID', $FSESSION->customer_id) .
                               tep_draw_hidden_field('x_Email_Customer', ((MODULE_PAYMENT_AUTHORIZENET_EMAIL_CUSTOMER == 'True') ? 'TRUE': 'FALSE')) .
                               tep_draw_hidden_field('x_first_name', $order->billing['firstname']) .
                               tep_draw_hidden_field('x_last_name', $order->billing['lastname']) .
                               tep_draw_hidden_field('x_address', $order->billing['street_address']) .
                               tep_draw_hidden_field('x_city', $order->billing['city']) .
  tep_draw_hidden_field('x_state',tep_get_zone_name($order->billing['country_id'],$order->billing['zone_id'],STORE_ZONE)).
                               tep_draw_hidden_field('x_zip', $order->billing['postcode']) .
                               tep_draw_hidden_field('x_country', $order->billing['country']['title']) .
                               tep_draw_hidden_field('x_phone', $order->customer['telephone']) .
                               tep_draw_hidden_field('x_email', $order->customer['email_address']) .
// add hjmsoftware invoice number
        tep_draw_hidden_field('x_invoice_num', $new_order_id) .

                               tep_draw_hidden_field('x_ship_to_first_name', $order->delivery['firstname']) .
                               tep_draw_hidden_field('x_ship_to_last_name', $order->delivery['lastname']) .
                               tep_draw_hidden_field('x_ship_to_address', $order->delivery['street_address']) .
                               tep_draw_hidden_field('x_ship_to_city', $order->delivery['c...

Read more...

Revision history for this message
Rameshranagn (ramesh-rangan) wrote :

Hi,

Thanks for your suggestion.

We will update this code in our next revision and will inform you shortly.

With Thanks,
Ramesh.P

Changed in openfreeway:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.