Cardsave Plugin Error

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 weeks ago #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 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 or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
12 years 2 weeks ago #74634

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->cart->$address_type->address_street,100,50);

to:
$address2 = substr($order->cart->$address_type->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 or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 weeks ago #74655

thank you have changed that will see how it goes.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum