diff --git a/modules/authorizeaim/authorizeaim.php b/modules/authorizeaim/authorizeaim.php index 419796c1c..7ddcd706c 100755 --- a/modules/authorizeaim/authorizeaim.php +++ b/modules/authorizeaim/authorizeaim.php @@ -220,7 +220,7 @@ class authorizeAIM extends PaymentModule $pcc->transaction_id = (string)$response[6]; // 50 => Card number (XXXX0000) - $pcc->card_number = (string)$response[50]; + $pcc->card_number = (string)substr($response[50], -4); // 51 => Card Mark (Visa, Master card) $pcc->card_brand = (string)$response[51];