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

#   Cardsave Plugin Error

##

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

Less More

- Posts: 610
- Thank you received: 13
-

14 years 1 week ago [\#74494](#74494) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  *[Cardsave Plugin Error](/forum/2-general-talk-about-hikashop/74494-cardsave-plugin-error#74494 "Hi, I have been having some payments fail for sometime and could never put a finger on it but going through a failed payment with a customer I realised that the Address Line 2 is not being sent...")* was created by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")*

Hi, I have been having some payments fail for sometime and could never put a finger on it but going through a failed payment with a customer I realised that the Address Line 2 is not being sent through and therefore is giving a AVS policy error and failing with the address check. Any clues what may be wrong.

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc0NDk0LWNhcmRzYXZlLXBsdWdpbi1lcnJvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14306
-
-

14 years 1 week ago [\#74634](#74634) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cardsave Plugin Error](/forum/2-general-talk-about-hikashop/74494-cardsave-plugin-error#74634 "Hi, I have been having some payments fail for sometime and could never put a finger on it but going through a failed payment with a customer I realised that the Address Line 2 is not being sent...")*

The cardsave plugin has been made before that address line 2 custom field existed in HikaShop. So that's why it's not sent to cardsave.

Try to change the line:
$address2 = @substr($order-&gt;cart-&gt;$address_type-&gt;address_street,100,50);

to:
$address2 = substr($order-&gt;cart-&gt;$address_type-&gt;address_street2,0,100);

in the file plugins/hikashoppayment/cardsave/cardsave.php and that should send the address line 2 to cardsave.

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

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

Less More

- Posts: 610
- Thank you received: 13
-

14 years 1 week ago [\#74655](#74655) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Re: Cardsave Plugin Error](/forum/2-general-talk-about-hikashop/74494-cardsave-plugin-error#74655 "Hi, I have been having some payments fail for sometime and could never put a finger on it but going through a failed payment with a customer I realised that the Address Line 2 is not being sent...")*

thank you have changed that will see how it goes.

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

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