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

#   Authorize.net Invoice Number

##

- **[pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")**
- [![pcomelearning's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44215-pcomelearning "View pcomelearning's Profile") Topic Author
- [ Offline](/forum/user/44215-pcomelearning)

Less More

- Posts: 24
- Thank you received: 1
-
-

8 years 9 months ago [\#286545](#286545) by [pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")  *[Authorize.net Invoice Number](/forum/25-install-update/893580-authorize-net-invoice-number#286545 "-- url of the page with the problem -- :   pacificcenterforlifelonglearning.com  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 7.0.18 -- Browser(s) name and version -- : Chrome 63.0.3239.132 -- Error-message(debug-mod must be tuned on) -- : Invoice Number does not appear in authorize.net invoice.  How do we send the invoice number to authrorize.net? Currently, no invoice number appears under the order information in authorize.net.  Looking at the API documentation, &quot;invoiceNumber&quot; can be sent under the &quot;order&quot; object in JSON. I have no clue how the data is sent in the authorize.net HikaShop plugin.  I was hoping you can help me add a couple of lines of code to pass the invoice number. See the attached screenshot for a visual of the missing information.  Thank you!")* was created by *[pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")*

-- url of the page with the problem -- : [ pacificcenterforlifelonglearning.com](https://pacificcenterforlifelonglearning.com)
-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
-- PHP version -- : 7.0.18
-- Browser(s) name and version -- : Chrome 63.0.3239.132
-- Error-message(debug-mod must be tuned on) -- : Invoice Number does not appear in authorize.net invoice.

How do we send the invoice number to authrorize.net?
Currently, no invoice number appears under the order information in authorize.net.

Looking at the API documentation, "invoiceNumber" can be sent under the "order" object in JSON.
I have no clue how the data is sent in the authorize.net HikaShop plugin.

I was hoping you can help me add a couple of lines of code to pass the invoice number.
See the attached screenshot for a visual of the missing information.

Thank you!

- [ ![chrome&#95;2018-01-24&#95;11-35-31.png](/forum/attachment/42299) ](/forum/attachment/42299 "...4&#95;11-35-31.png") [ ](/forum/attachment/42299?download=1 "...4&#95;11-35-31.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MzU4MC1hdXRob3JpemUtbmV0LWludm9pY2UtbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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
-
-

8 years 9 months ago [\#286558](#286558) 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 Invoice Number](/forum/25-install-update/893580-authorize-net-invoice-number#286558 "-- url of the page with the problem -- :   pacificcenterforlifelonglearning.com  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 7.0.18 -- Browser(s) name and version -- : Chrome 63.0.3239.132 -- Error-message(debug-mod must be tuned on) -- : Invoice Number does not appear in authorize.net invoice.  How do we send the invoice number to authrorize.net? Currently, no invoice number appears under the order information in authorize.net.  Looking at the API documentation, &quot;invoiceNumber&quot; can be sent under the &quot;order&quot; object in JSON. I have no clue how the data is sent in the authorize.net HikaShop plugin.  I was hoping you can help me add a couple of lines of code to pass the invoice number. See the attached screenshot for a visual of the missing information.  Thank you!")*

Hi,

The invoice number is generated by HikaShop when an order is confirmed.
An order is confirmed when the payment plugin of the selected payment method of that order changes the status of the order to "confirmed".
A payment plugin will do that after it receives the confirmation from the payment gateway that the payment has been made.

So when the payment plugin places the order for the payment, the invoice number hasn't been generated yet and thus cannot be sent.

Now, in SIM, the "order id" is sent to authorize.net as "invoice number". In AIM mode, it's potentially possible to guess the order_id and send it:
[ www.hikashop.com/support/forum/payment-m...ber-description.html](https://www.hikashop.com/support/forum/payment-methods/861517-authorize-net-aim-order-number-description.html)
But for the invoice number it's more complex to guess it.
I would recommend hiring a developer to do that.

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

- **[pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")**
- [![pcomelearning's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44215-pcomelearning "View pcomelearning's Profile") Topic Author
- [ Offline](/forum/user/44215-pcomelearning)

Less More

- Posts: 24
- Thank you received: 1
-
-

8 years 9 months ago -  8 years 9 months ago [\#286637](#286637) by [pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")  Replied by *[pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")* on topic *[Authorize.net Invoice Number](/forum/25-install-update/893580-authorize-net-invoice-number#286637 "-- url of the page with the problem -- :   pacificcenterforlifelonglearning.com  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 7.0.18 -- Browser(s) name and version -- : Chrome 63.0.3239.132 -- Error-message(debug-mod must be tuned on) -- : Invoice Number does not appear in authorize.net invoice.  How do we send the invoice number to authrorize.net? Currently, no invoice number appears under the order information in authorize.net.  Looking at the API documentation, &quot;invoiceNumber&quot; can be sent under the &quot;order&quot; object in JSON. I have no clue how the data is sent in the authorize.net HikaShop plugin.  I was hoping you can help me add a couple of lines of code to pass the invoice number. See the attached screenshot for a visual of the missing information.  Thank you!")*

Thanks for the quick response.

We are using AIM.

Looking at the database table hikashop_order, the columns order_invoice_id is 0, order_invoice_number is blank, and order_invoice_created is 0.

Looking at the API document from the link at the end of the other forum post, it sounds like the API being used is deprecated:
[ www.authorize.net/content/dam/authorize/documents/AIM\_guide.pdf](https://www.authorize.net/content/dam/authorize/documents/AIM_guide.pdf)

I think my confusion is coming from different versions of the API, where the new one allows you to POST a generated invoice number.

- [ ![chrome&#95;2018-01-25&#95;18-09-18.png](/forum/attachment/42311) ](/forum/attachment/42311 "...5&#95;18-09-18.png") [ ](/forum/attachment/42311?download=1 "...5&#95;18-09-18.png")

Last edit: 8 years 9 months ago by [pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MzU4MC1hdXRob3JpemUtbmV0LWludm9pY2UtbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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
-
-

8 years 9 months ago [\#286641](#286641) 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 Invoice Number](/forum/25-install-update/893580-authorize-net-invoice-number#286641 "-- url of the page with the problem -- :   pacificcenterforlifelonglearning.com  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 7.0.18 -- Browser(s) name and version -- : Chrome 63.0.3239.132 -- Error-message(debug-mod must be tuned on) -- : Invoice Number does not appear in authorize.net invoice.  How do we send the invoice number to authrorize.net? Currently, no invoice number appears under the order information in authorize.net.  Looking at the API documentation, &quot;invoiceNumber&quot; can be sent under the &quot;order&quot; object in JSON. I have no clue how the data is sent in the authorize.net HikaShop plugin.  I was hoping you can help me add a couple of lines of code to pass the invoice number. See the attached screenshot for a visual of the missing information.  Thank you!")*

Hi,

Regarding the columns you're talking about, these columns are filled in when the status of the order goes from created to confirmed.
If the order is only created, then the invoice is not generated. Similarily, if you change the "invoice" statuses in the menu System&gt;Order statuses, it can affect how the invoice is generated.

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

- **[pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")**
- [![pcomelearning's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44215-pcomelearning "View pcomelearning's Profile") Topic Author
- [ Offline](/forum/user/44215-pcomelearning)

Less More

- Posts: 24
- Thank you received: 1
-
-

8 years 9 months ago [\#286693](#286693) by [pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")  Replied by *[pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")* on topic *[Authorize.net Invoice Number](/forum/25-install-update/893580-authorize-net-invoice-number#286693 "-- url of the page with the problem -- :   pacificcenterforlifelonglearning.com  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 7.0.18 -- Browser(s) name and version -- : Chrome 63.0.3239.132 -- Error-message(debug-mod must be tuned on) -- : Invoice Number does not appear in authorize.net invoice.  How do we send the invoice number to authrorize.net? Currently, no invoice number appears under the order information in authorize.net.  Looking at the API documentation, &quot;invoiceNumber&quot; can be sent under the &quot;order&quot; object in JSON. I have no clue how the data is sent in the authorize.net HikaShop plugin.  I was hoping you can help me add a couple of lines of code to pass the invoice number. See the attached screenshot for a visual of the missing information.  Thank you!")*

Thank you for the reply.

Since the invoice isn't generated until the order is confirmed, it can't be sent to authorize.net. Sounds like the Authorize AIM API being used doesn't take an invoice number anyway.

Are there any plans on building a new Authroize.net Payment plugin, since the current API being used is deprecated?

There are two features from the payment processing that are crucial:.

1. Ability to do refunds automatically.
2. Invoice number on the Authorize side to refer to and separate purchases from multiple components.

We have another component in the store that uses AIM authorize.net that populates the invoice number into the Authorize.net invoice.If it did not, we would have no way of separating out HikaShop products from event sales.

Finally, the orders in the database are mostly confirmed, but no invoice number is showing in the database for any order id. Here are the settings for "system &gt; order".  [ ![chrome&#95;2018-01-25&#95;18-09-18&#95;2018-01-26.png](/forum/attachment/42326) ](/forum/attachment/42326 "...2018-01-26.png")

- [ ![chrome&#95;2018-01-25&#95;18-09-18&#95;2018-01-26.png](/forum/attachment/42326) ](/forum/attachment/42326 "...2018-01-26.png") [ ](/forum/attachment/42326?download=1 "...2018-01-26.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MzU4MC1hdXRob3JpemUtbmV0LWludm9pY2UtbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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
-
-

8 years 9 months ago [\#286705](#286705) 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 Invoice Number](/forum/25-install-update/893580-authorize-net-invoice-number#286705 "-- url of the page with the problem -- :   pacificcenterforlifelonglearning.com  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 7.0.18 -- Browser(s) name and version -- : Chrome 63.0.3239.132 -- Error-message(debug-mod must be tuned on) -- : Invoice Number does not appear in authorize.net invoice.  How do we send the invoice number to authrorize.net? Currently, no invoice number appears under the order information in authorize.net.  Looking at the API documentation, &quot;invoiceNumber&quot; can be sent under the &quot;order&quot; object in JSON. I have no clue how the data is sent in the authorize.net HikaShop plugin.  I was hoping you can help me add a couple of lines of code to pass the invoice number. See the attached screenshot for a visual of the missing information.  Thank you!")*

Hi,

We don't have plans to implement the new API in the short term as we're working on other things.
We'll do it before the API will be discontinued.

Maybe someone one might work on such plugin in the mean time. Any PHP developer can write payment plugins for HikaShop and we encourage that.

Regarding the matching of payments in Authorize.net and the orders in HikaShop, you'll find the transaction id in the history data of each order when you edit it in the backend. And you can easily find the payment corresponding to the transaction id in your Authorize.net merchant account.

As I said in my previous message, if you change the "invoice" statuses in the menu System&gt;Order statuses, it can affect how the invoice is generated. So that's where you should first look if the invoice number is not generated for the orders even when confirmed.

The following user(s) said Thank You: [pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")

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

- **[pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")**
- [![pcomelearning's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44215-pcomelearning "View pcomelearning's Profile") Topic Author
- [ Offline](/forum/user/44215-pcomelearning)

Less More

- Posts: 24
- Thank you received: 1
-
-

8 years 8 months ago [\#288757](#288757) by [pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")  Replied by *[pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")* on topic *[Authorize.net Invoice Number](/forum/25-install-update/893580-authorize-net-invoice-number#288757 "-- url of the page with the problem -- :   pacificcenterforlifelonglearning.com  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 7.0.18 -- Browser(s) name and version -- : Chrome 63.0.3239.132 -- Error-message(debug-mod must be tuned on) -- : Invoice Number does not appear in authorize.net invoice.  How do we send the invoice number to authrorize.net? Currently, no invoice number appears under the order information in authorize.net.  Looking at the API documentation, &quot;invoiceNumber&quot; can be sent under the &quot;order&quot; object in JSON. I have no clue how the data is sent in the authorize.net HikaShop plugin.  I was hoping you can help me add a couple of lines of code to pass the invoice number. See the attached screenshot for a visual of the missing information.  Thank you!")*

Currently, are there any payment plugins that allow refunds to be made from within HikaShop?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MzU4MC1hdXRob3JpemUtbmV0LWludm9pY2UtbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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
-
-

8 years 8 months ago [\#288776](#288776) 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 Invoice Number](/forum/25-install-update/893580-authorize-net-invoice-number#288776 "-- url of the page with the problem -- :   pacificcenterforlifelonglearning.com  -- HikaShop version -- : 3.2.2 -- Joomla version -- : 3.8.3 -- PHP version -- : 7.0.18 -- Browser(s) name and version -- : Chrome 63.0.3239.132 -- Error-message(debug-mod must be tuned on) -- : Invoice Number does not appear in authorize.net invoice.  How do we send the invoice number to authrorize.net? Currently, no invoice number appears under the order information in authorize.net.  Looking at the API documentation, &quot;invoiceNumber&quot; can be sent under the &quot;order&quot; object in JSON. I have no clue how the data is sent in the authorize.net HikaShop plugin.  I was hoping you can help me add a couple of lines of code to pass the invoice number. See the attached screenshot for a visual of the missing information.  Thank you!")*

Hi,

Not that I know of. Most payment gateways don't support that and sometimes, you want to change the status of the order without necessarily refunding the order. So we're not sure yet as to how we would add that in a generic way.
But any payment plugin can be modified to support it if the API of the payment gateway supports it. The trigger is already available in HikaShop (onAfterOrderUpdate) so then it's about writting the code to contact the payment gateway.
So if you need it, you can have a developer add it for you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MzU4MC1hdXRob3JpemUtbmV0LWludm9pY2UtbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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.097 seconds

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