Suppressing the credit card number on an invoice is an optional setting. It can be enabled under Store Settings.
Browse to Settings > Security > General
- Check the 'Force Credit Card Truncation on Invoices' Setting
- Click Save
This will force truncation of the credit card number on the invoice and display only four digits.