Sending mail
Posted: Mon Aug 13, 2007 9:16 am
Hello,
i dont know how to change the code in my shopping cart, how to change code ,when clients buy from my cart to send the credit cart information also to my mail,because when we have some problems with order sometimes, i cannot process the order because the credit card number is encrypted(middle) so now i got permission from shopping cart that im using to change the code.Please could help me to do something in this way.
the lines are:
or
I appreciative this.
THank you
i dont know how to change the code in my shopping cart, how to change code ,when clients buy from my cart to send the credit cart information also to my mail,because when we have some problems with order sometimes, i cannot process the order because the credit card number is encrypted(middle) so now i got permission from shopping cart that im using to change the code.Please could help me to do something in this way.
the lines are:
Code: Select all
function confirmation() {
global $_POST;
$confirmation = array('title' => $this->title . ': ' . $this->cc_card_type,
'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER,
'field' => $_POST['cc_owner']),
array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER,
'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - ) . substr($this->cc_card_number, -4)),
array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES,
'field' => strftime('%B, %Y', mktime(0,0,0,$_POST['cc_expires_month'], 1, '20' . $_POST['cc_expires_year'])))));
if (MODULE_PAYMENT_CC_COLLECT_CVV == 'True') {
$confirmation['fields'][] = array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_CVV,
'field' => $_POST['cc_cvv']);
}
return $confirmation;
}Code: Select all
function before_process() {
global $_POST, $order;
if (defined('MODULE_PAYMENT_CC_STORE_NUMBER') && MODULE_PAYMENT_CC_STORE_NUMBER == 'True') {
$order->info['cc_number'] = $_POST['cc_number'];
}
$order->info['cc_expires'] = $_POST['cc_expires'];
$order->info['cc_type'] = $_POST['cc_type'];
$order->info['cc_owner'] = $_POST['cc_owner'];
$order->info['cc_cvv'] = $_POST['cc_cvv'];
$len = strlen($_POST['cc_number']);
$this->cc_middle = substr($_POST['cc_number'], 4, ($len-8));
if ( (defined('MODULE_PAYMENT_CC_EMAIL')) && (zen_validate_email(MODULE_PAYMENT_CC_EMAIL)) ) {
$order->info['cc_number'] = substr($_POST['cc_number'], 0, 4) . str_repeat('X', (strlen($_POST['cc_number']) - ) . substr($_POST['cc_number'], -4);
}
}THank you