To change the middle 8 numbers of the credit card no to X's that are stored in the database for security purposes, add the following line to includes/modules/payment/chargeit.php in the before_process function around line 464 :
$order->info['cc_number'] = substr($_POST['cc_number'], 0, 4) . str_repeat('X', (strlen($_POST['cc_number']) - 8)) . substr($_POST['cc_number'], -4);
Should look like this:
// clean $_POST
$ssl_card_number = strip_tags($_POST['cc_number']);
$ssl_exp_date = strip_tags($_POST['cc_expires']);
$ssl_cvv2cvc2_indicator = strip_tags($_POST['cvv_indicator']);
$ssl_cvv2cvc2 = strip_tags($_POST['cvv_number']);
$order->info['cc_number'] = substr($_POST['cc_number'], 0, 4) . str_repeat('X', (strlen($_POST['cc_number']) - 8)) . substr($_POST['cc_number'], -4);
// Populate an array that contains all of the data to be submitted
Ed