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. ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| 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. |
|
#3
| |||
| |||
| 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
| |||
| |||
| 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. 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
| ||||
| ||||
| 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. |
|
#6
| |||
| |||
| 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
| ||||
| ||||
| 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.
__________________ 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. |
| The Following User Says Thank You to michael_s For This Useful Post: | ||
Mushroom (01-01-2007) | ||
|
#8
| |||
| |||
| 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
| |||
| |||
| 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! |
| Thread Tools | |
| |
| ||||
| 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 |