[Skip to main content](#vessel-content)

#   Authorize.net (AIM) order number &amp; description

##

- **[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")**
- [![reddeer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-02.jpg)](/forum/user/14988-reddeer "View reddeer's Profile") Topic Author
- [ Offline](/forum/user/14988-reddeer)

Less More

- Posts: 29
- Thank you received: 0
-
-

13 years 2 months ago [\#120938](#120938) by [reddeer](/forum/user/14988-reddeer "View reddeer's Profile")  *[Authorize.net (AIM) order number &amp; description](/forum/29-payment-methods/861517-authorize-net-aim-order-number-description#120938 "-- url of the page with the problem -- : n/a -- HikaShop version -- : 2.2.0 soon to be 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hikari,  I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. B)  Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. :(  Thanks!")* was created by *[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")*

-- url of the page with the problem -- : n/a
-- HikaShop version -- : 2.2.0 soon to be 2.2.1
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3.18
-- Browser(s) name and version -- : n/a
-- Error-message(debug-mod must be tuned on) -- : n/a

Hi Hikari,

I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. ![B)](/media/kunena/emoticons/9.png "B)")

Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. ![:(](/media/kunena/emoticons/22.png ":(")

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NjE1MTctYXV0aG9yaXplLW5ldC1haW0tb3JkZXItbnVtYmVyLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#121030](#121030) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Authorize.net (AIM) order number &amp; description](/forum/29-payment-methods/861517-authorize-net-aim-order-number-description#121030 "-- url of the page with the problem -- : n/a -- HikaShop version -- : 2.2.0 soon to be 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hikari,  I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. B)  Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. :(  Thanks!")*

Hi,

Authorize plugin in AIM mode call the payment platform before the order creation. So the order does not have an order id yet.
It is possible to make a request in the database in order to predict what the order id should be, I guess that could be an interesting function in the Payment plugin interface.

For the description, what do you want to send ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NjE1MTctYXV0aG9yaXplLW5ldC1haW0tb3JkZXItbnVtYmVyLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")**
- [![reddeer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-02.jpg)](/forum/user/14988-reddeer "View reddeer's Profile") Topic Author
- [ Offline](/forum/user/14988-reddeer)

Less More

- Posts: 29
- Thank you received: 0
-
-

13 years 2 months ago [\#121107](#121107) by [reddeer](/forum/user/14988-reddeer "View reddeer's Profile")  Replied by *[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")* on topic *[Authorize.net (AIM) order number &amp; description](/forum/29-payment-methods/861517-authorize-net-aim-order-number-description#121107 "-- url of the page with the problem -- : n/a -- HikaShop version -- : 2.2.0 soon to be 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hikari,  I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. B)  Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. :(  Thanks!")*

Hi Jerome,

In the past what we have seen show up on the Merchant Email Receipt is this: Code:

========= ORDER INFORMATION ========= Invoice : 100001 Description : Product Name Amount : 500.00 (USD) Payment Method : Visa Type : Authorization and Capture

where:
Invoice is actually the order number.
Description: Product Name corresponds to the name of the purchased item.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NjE1MTctYXV0aG9yaXplLW5ldC1haW0tb3JkZXItbnVtYmVyLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

13 years 2 months ago [\#121273](#121273) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Authorize.net (AIM) order number &amp; description](/forum/29-payment-methods/861517-authorize-net-aim-order-number-description#121273 "-- url of the page with the problem -- : n/a -- HikaShop version -- : 2.2.0 soon to be 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hikari,  I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. B)  Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. :(  Thanks!")*

You can edit the file plugins/hikashoppayment/authorize/authorize_end.php and add the code below at the beginning: Code:

&lt;?php $product = explode('&lt;&#124;&gt;',$this-&gt;vars['x_line_item'][0]); $this-&gt;vars['x_description'] = $product[1]; $db = JFactory::getDBO(); $db-&gt;setQuery('SELECT max(order_id)+1 FROM #__hikashop_order;'); $this-&gt;vars['x_invoice_num'] = $db-&gt;loadResult(); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NjE1MTctYXV0aG9yaXplLW5ldC1haW0tb3JkZXItbnVtYmVyLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")**
- [![reddeer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-02.jpg)](/forum/user/14988-reddeer "View reddeer's Profile") Topic Author
- [ Offline](/forum/user/14988-reddeer)

Less More

- Posts: 29
- Thank you received: 0
-
-

13 years 2 months ago [\#121777](#121777) by [reddeer](/forum/user/14988-reddeer "View reddeer's Profile")  Replied by *[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")* on topic *[Authorize.net (AIM) order number &amp; description](/forum/29-payment-methods/861517-authorize-net-aim-order-number-description#121777 "-- url of the page with the problem -- : n/a -- HikaShop version -- : 2.2.0 soon to be 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hikari,  I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. B)  Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. :(  Thanks!")*

I will give this a try on a test machine.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NjE1MTctYXV0aG9yaXplLW5ldC1haW0tb3JkZXItbnVtYmVyLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")**
- [![reddeer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-02.jpg)](/forum/user/14988-reddeer "View reddeer's Profile") Topic Author
- [ Offline](/forum/user/14988-reddeer)

Less More

- Posts: 29
- Thank you received: 0
-
-

13 years 2 months ago [\#121800](#121800) by [reddeer](/forum/user/14988-reddeer "View reddeer's Profile")  Replied by *[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")* on topic *[Authorize.net (AIM) order number &amp; description](/forum/29-payment-methods/861517-authorize-net-aim-order-number-description#121800 "-- url of the page with the problem -- : n/a -- HikaShop version -- : 2.2.0 soon to be 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hikari,  I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. B)  Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. :(  Thanks!")*

I placed the code at the beginning as shown below, but no order number appeared in the statement. Did you really mean to place the code at the beginning where I put it or should I have placed the code later in the file? If this is wrong, maybe you could specify the code block before which I should have placed the new code.

Thanks,
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.2.0 * @author hikashop.com * @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;?php $product = explode('&lt;&#124;&gt;',$this-&gt;vars['x_line_item'][0]); $this-&gt;vars['x_description'] = $product[1]; $db = JFactory::getDBO(); $db-&gt;setQuery('SELECT max(order_id)+1 FROM #__hikashop_order;'); $this-&gt;vars['x_invoice_num'] = $db-&gt;loadResult(); ?&gt; &lt;?php if ($this-&gt;payment_params-&gt;api == 'dpm' &amp;&amp; @$this-&gt;payment_params-&gt;iframe){ $url=urlencode(base64_encode(serialize($this-&gt;vars))); ?&gt; &lt;iframe name="frame" scrolling="auto" height="1000" width="660" Frameborder="no" src="&lt;?php echo $vars["x_relay_url"].'&amp;iframe='.$url;?&gt;"&gt;&lt;/iframe&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NjE1MTctYXV0aG9yaXplLW5ldC1haW0tb3JkZXItbnVtYmVyLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 2 months ago -  13 years 2 months ago [\#121820](#121820) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Authorize.net (AIM) order number &amp; description](/forum/29-payment-methods/861517-authorize-net-aim-order-number-description#121820 "-- url of the page with the problem -- : n/a -- HikaShop version -- : 2.2.0 soon to be 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hikari,  I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. B)  Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. :(  Thanks!")*

Hi,

The place in the file is the good one.
And the code looks good too.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 13 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NjE1MTctYXV0aG9yaXplLW5ldC1haW0tb3JkZXItbnVtYmVyLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")**
- [![reddeer's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-04-02.jpg)](/forum/user/14988-reddeer "View reddeer's Profile") Topic Author
- [ Offline](/forum/user/14988-reddeer)

Less More

- Posts: 29
- Thank you received: 0
-
-

13 years 1 month ago [\#121986](#121986) by [reddeer](/forum/user/14988-reddeer "View reddeer's Profile")  Replied by *[reddeer](/forum/user/14988-reddeer "View reddeer's Profile")* on topic *[Authorize.net (AIM) order number &amp; description](/forum/29-payment-methods/861517-authorize-net-aim-order-number-description#121986 "-- url of the page with the problem -- : n/a -- HikaShop version -- : 2.2.0 soon to be 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hikari,  I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. B)  Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. :(  Thanks!")*

Well, it's good that I put the code in the correct place, but I still do not see an order number in the Authorize.net merchant receipt. Is there something else that needs to be done to make the order number show up?

Thanks.

This is what I get: Code:

========= GENERAL INFORMATION ========= Merchant : My Test Account (xxxxxx) Date/Time : 4-Sep-2013 9:09:02 PDT ========= ORDER INFORMATION ========= Invoice : Description : Amount : 100.00 (USD) Payment Method : Visa Type : Authorization and Capture

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NjE1MTctYXV0aG9yaXplLW5ldC1haW0tb3JkZXItbnVtYmVyLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#122040](#122040) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Authorize.net (AIM) order number &amp; description](/forum/29-payment-methods/861517-authorize-net-aim-order-number-description#122040 "-- url of the page with the problem -- : n/a -- HikaShop version -- : 2.2.0 soon to be 2.2.1 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hi Hikari,  I noticed that other people also have asked for this feature in the past, probably for the same reason we need it, which is that the company accountant needs to see the information on the Authorize.net statement, otherwise she just has an amount and not a number with which to track the purchase. I'm told that tax auditors tend not to like this. B)  Has the capability to send the order id and description been added to the Authorize.net plug-in or must the user still modify plugins/hikashoppayment/authorize.php himself? We have Authorize.net statements generated via previous shopping carts (also using the AIM method) that contain this information, so I can't justify to the accountant why we cannot have this with HikaShop. :(  Thanks!")*

Hi,

[ www.authorize.net/support/AIM\_guide.pdf](http://www.authorize.net/support/AIM_guide.pdf)
I don't see any other variables for the invoice number of the description.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NjE1MTctYXV0aG9yaXplLW5ldC1haW0tb3JkZXItbnVtYmVyLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.087 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
