osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-31-2006, 10:16 PM
Member
 
Join Date: Dec 2006
Posts: 74
Thanks: 11
Thanked 13 Times in 4 Posts
Rep Power: 2
Mushroom will become famous soon enough
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 12-31-2006, 10:30 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,170
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-01-2007, 08:11 AM
Member
 
Join Date: Dec 2006
Posts: 74
Thanks: 11
Thanked 13 Times in 4 Posts
Rep Power: 2
Mushroom will become famous soon enough
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-01-2007, 10:07 AM
Member
 
Join Date: Dec 2006
Posts: 74
Thanks: 11
Thanked 13 Times in 4 Posts
Rep Power: 2
Mushroom will become famous soon enough
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-01-2007, 10:43 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,170
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 01-01-2007, 11:55 AM
Member
 
Join Date: Dec 2006
Posts: 74
Thanks: 11
Thanked 13 Times in 4 Posts
Rep Power: 2
Mushroom will become famous soon enough
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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-01-2007, 12:40 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,170
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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
File Type: zip Authorizenet Consolidated v1.7b.zip (78.8 KB, 5 views)
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to michael_s For This Useful Post:
Mushroom (01-01-2007)
  #8  
Old 03-08-2007, 10:56 PM
New Member
 
Join Date: Apr 2005
Posts: 15
Thanks: 1
Thanked 2 Times in 1 Post
Rep Power: 0
zododo
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following 2 Users Say Thank You to zododo For This Useful Post:
michael_s (03-08-2007), Mushroom (03-17-2007)
  #9  
Old 03-17-2007, 01:02 PM
Member
 
Join Date: Dec 2006
Posts: 74
Thanks: 11
Thanked 13 Times in 4 Posts
Rep Power: 2
Mushroom will become famous soon enough
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 02:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax