From 5f09a4c526faddce87240700d118325688cd4c61 Mon Sep 17 00:00:00 2001 From: vSchoener Date: Tue, 25 Oct 2011 13:33:28 +0000 Subject: [PATCH] - Authorieaim : Change format of the stored credit card --- modules/authorizeaim/authorizeaim.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];