Skip to main content

Cardsave Plugin Error

14 years 1 week ago #74494 by mohairbears
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.

14 years 1 week ago #74634 by nicolas
Replied by nicolas on topic Re: Cardsave Plugin Error
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.

14 years 1 week ago #74655 by mohairbears
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.049 seconds
Powered by Kunena Forum