Remove Credit Card Information From Sales Email In Magento

Magento sends the credit card number openly by email,
which is not secured at all. Here is how we can remove it.

Step 1: Open the file
app/design/frontend/default/your_theme/template/payment/info/cc.phtml

Step 2: Find the lines that read:
[php]
<?php echo $this->__(‘Credit Card Number: xxxx-%s’, $this->htmlEscape($this->getInfo()->getCcLast4())) ?>
<?php echo $this->__(‘Expiration Date: %s/%s’, $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
[/php]
Step 3: Comment this code out, so it looks like this:
[php]
<!–<?php echo $this->__(‘Credit Card Number: xxxx-%s’, $this->htmlEscape($this->getInfo()->getCcLast4())) ?>
<?php echo $this->__(‘Expiration Date: %s/%s’, $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>–>[/php]

Leave a Comment

Your email address will not be published. Required fields are marked *

*