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

#   AuthorizeNet error when using discount codes

##

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

Less More

- Posts: 52
- Thank you received: 1
-
-

10 years 11 months ago [\#224468](#224468) by [NanoPlanet](/forum/user/34445-nanoplanet "View NanoPlanet's Profile")  *[AuthorizeNet error when using discount codes](/forum/3-bug-report/881152-authorizenet-error-when-using-discount-codes#224468 "-- url of the page with the problem -- :   www.gaveegold.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- Error-message(debug-mod must be tuned on) -- : (270) Line item 1 is invalid  Please note that I &#42;DID&#42; apply the patch noted in an earlier thread and that it did NOT fix the problem.  There seems to be an issue with HikaShop and AuthorizeNet. If I try to send through an order WITHOUT a discount or coupon code, the order goes through fine. If I try to place an order WITH a code, however, I get the dreaded error:  (270) Line item 1 is invalid  or sometimes  (270) Line item 2 is invalid  As I noted above, I applied the recommended patch and it did not work.  Please advise. My client has already paid for an ad featuring her discount code in a very expensive publication so we need to get this working again asap.  Many thanks,  Leslie")* was created by *[NanoPlanet](/forum/user/34445-nanoplanet "View NanoPlanet's Profile")*

-- url of the page with the problem -- : [ www.gaveegold.com](http://www.gaveegold.com)
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.6
-- Error-message(debug-mod must be tuned on) -- : (270) Line item 1 is invalid

**Please note that I \*DID\* apply the patch noted in an earlier thread and that it did NOT fix the problem.**

There seems to be an issue with HikaShop and AuthorizeNet. If I try to send through an order WITHOUT a discount or coupon code, the order goes through fine. If I try to place an order WITH a code, however, I get the dreaded error:

(270) Line item 1 is invalid

or sometimes

(270) Line item 2 is invalid

As I noted above, I applied the recommended patch and it did not work.

Please advise. My client has already paid for an ad featuring her discount code in a very expensive publication so we need to get this working again asap.

Many thanks,

Leslie

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODExNTItYXV0aG9yaXplbmV0LWVycm9yLXdoZW4tdXNpbmctZGlzY291bnQtY29kZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 26401
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 11 months ago [\#224473](#224473) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[AuthorizeNet error when using discount codes](/forum/3-bug-report/881152-authorizenet-error-when-using-discount-codes#224473 "-- url of the page with the problem -- :   www.gaveegold.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- Error-message(debug-mod must be tuned on) -- : (270) Line item 1 is invalid  Please note that I &#42;DID&#42; apply the patch noted in an earlier thread and that it did NOT fix the problem.  There seems to be an issue with HikaShop and AuthorizeNet. If I try to send through an order WITHOUT a discount or coupon code, the order goes through fine. If I try to place an order WITH a code, however, I get the dreaded error:  (270) Line item 1 is invalid  or sometimes  (270) Line item 2 is invalid  As I noted above, I applied the recommended patch and it did not work.  Please advise. My client has already paid for an ad featuring her discount code in a very expensive publication so we need to get this working again asap.  Many thanks,  Leslie")*

Hi,

The modification made in the authorize.net plugin was for Payzee.
But Payzee does not act like Authorize.net so that patch generated the issue.
We reverted that patch and put a setting instead (so you can choose how the coupon will be sent to the payment gateway).

By re-downloading the latest package of HikaShop 2.6.0 you should have that new setting.
Otherwise, you have to revert (perform the inverse) the patch explained there :
[ www.hikashop.com/forum/payment-methods/8...html?start=60#211520](http://www.hikashop.com/forum/payment-methods/861488-first-data-gge4-configuration.html?start=60#211520)

And if you apply correctly the patch, the solution will be fixed. I'm very sure of it.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODExNTItYXV0aG9yaXplbmV0LWVycm9yLXdoZW4tdXNpbmctZGlzY291bnQtY29kZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 52
- Thank you received: 1
-
-

10 years 10 months ago [\#224530](#224530) by [NanoPlanet](/forum/user/34445-nanoplanet "View NanoPlanet's Profile")  Replied by *[NanoPlanet](/forum/user/34445-nanoplanet "View NanoPlanet's Profile")* on topic *[AuthorizeNet error when using discount codes](/forum/3-bug-report/881152-authorizenet-error-when-using-discount-codes#224530 "-- url of the page with the problem -- :   www.gaveegold.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- Error-message(debug-mod must be tuned on) -- : (270) Line item 1 is invalid  Please note that I &#42;DID&#42; apply the patch noted in an earlier thread and that it did NOT fix the problem.  There seems to be an issue with HikaShop and AuthorizeNet. If I try to send through an order WITHOUT a discount or coupon code, the order goes through fine. If I try to place an order WITH a code, however, I get the dreaded error:  (270) Line item 1 is invalid  or sometimes  (270) Line item 2 is invalid  As I noted above, I applied the recommended patch and it did not work.  Please advise. My client has already paid for an ad featuring her discount code in a very expensive publication so we need to get this working again asap.  Many thanks,  Leslie")*

We *have* HikaShop 2.6 and the patch you referenced is the one I applied. No luck.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODExNTItYXV0aG9yaXplbmV0LWVycm9yLXdoZW4tdXNpbmctZGlzY291bnQtY29kZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 26401
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 10 months ago [\#224531](#224531) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[AuthorizeNet error when using discount codes](/forum/3-bug-report/881152-authorizenet-error-when-using-discount-codes#224531 "-- url of the page with the problem -- :   www.gaveegold.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- Error-message(debug-mod must be tuned on) -- : (270) Line item 1 is invalid  Please note that I &#42;DID&#42; apply the patch noted in an earlier thread and that it did NOT fix the problem.  There seems to be an issue with HikaShop and AuthorizeNet. If I try to send through an order WITHOUT a discount or coupon code, the order goes through fine. If I try to place an order WITH a code, however, I get the dreaded error:  (270) Line item 1 is invalid  or sometimes  (270) Line item 2 is invalid  As I noted above, I applied the recommended patch and it did not work.  Please advise. My client has already paid for an ad featuring her discount code in a very expensive publication so we need to get this working again asap.  Many thanks,  Leslie")*

Hi,

In which way does the patch is applied ?

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODExNTItYXV0aG9yaXplbmV0LWVycm9yLXdoZW4tdXNpbmctZGlzY291bnQtY29kZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 52
- Thank you received: 1
-
-

10 years 10 months ago [\#224628](#224628) by [NanoPlanet](/forum/user/34445-nanoplanet "View NanoPlanet's Profile")  Replied by *[NanoPlanet](/forum/user/34445-nanoplanet "View NanoPlanet's Profile")* on topic *[AuthorizeNet error when using discount codes](/forum/3-bug-report/881152-authorizenet-error-when-using-discount-codes#224628 "-- url of the page with the problem -- :   www.gaveegold.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- Error-message(debug-mod must be tuned on) -- : (270) Line item 1 is invalid  Please note that I &#42;DID&#42; apply the patch noted in an earlier thread and that it did NOT fix the problem.  There seems to be an issue with HikaShop and AuthorizeNet. If I try to send through an order WITHOUT a discount or coupon code, the order goes through fine. If I try to place an order WITH a code, however, I get the dreaded error:  (270) Line item 1 is invalid  or sometimes  (270) Line item 2 is invalid  As I noted above, I applied the recommended patch and it did not work.  Please advise. My client has already paid for an ad featuring her discount code in a very expensive publication so we need to get this working again asap.  Many thanks,  Leslie")*

I modified the authorize.php file locataed in /public_html/plugins/hikashoppayment/authorize
per the patch instructions in the above referenced thread URL.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODExNTItYXV0aG9yaXplbmV0LWVycm9yLXdoZW4tdXNpbmctZGlzY291bnQtY29kZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 26401
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 10 months ago [\#224635](#224635) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[AuthorizeNet error when using discount codes](/forum/3-bug-report/881152-authorizenet-error-when-using-discount-codes#224635 "-- url of the page with the problem -- :   www.gaveegold.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.6 -- Error-message(debug-mod must be tuned on) -- : (270) Line item 1 is invalid  Please note that I &#42;DID&#42; apply the patch noted in an earlier thread and that it did NOT fix the problem.  There seems to be an issue with HikaShop and AuthorizeNet. If I try to send through an order WITHOUT a discount or coupon code, the order goes through fine. If I try to place an order WITH a code, however, I get the dreaded error:  (270) Line item 1 is invalid  or sometimes  (270) Line item 2 is invalid  As I noted above, I applied the recommended patch and it did not work.  Please advise. My client has already paid for an ad featuring her discount code in a very expensive publication so we need to get this working again asap.  Many thanks,  Leslie")*

Hi,

I am sorry but it still does not reply clearly to the question I made.
So, please confirm me that you have done exactly what I have recommend you :

> Otherwise, you have to **revert (perform the inverse) the patch** explained there :
> [ www.hikashop.com/forum/payment-methods/8...html?start=60#211520](http://www.hikashop.com/forum/payment-methods/861488-first-data-gge4-configuration.html?start=60#211520)

Please understand that the patch mentioned is the source of the issue with Authorize ; but that patch fix an issue with Payzee... And I don't think I need to rewrite what I have already wrote before....

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODExNTItYXV0aG9yaXplbmV0LWVycm9yLXdoZW4tdXNpbmctZGlzY291bnQtY29kZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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.080 seconds

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