Stop collecting card numbers on your own site. Move payment to a page run by your processor, delete every stored security code at once, and clear the card numbers from the database, the mailboxes and the backups.

A card number in two places

A specialty food shop sells cheeses, preserves and olive oils through a small online store. When an order comes in, the store saves the card number with its middle digits blanked out.

It also emails those middle digits, the expiry date and the security code to the office, where staff join the halves and key the order into the card terminal.

The arrangement was set up years ago to take cards online without a payment gateway, and it has run smoothly ever since. That smoothness hides the risk.

Why splitting the number protects nothing

Splitting a card number helps only if no one can reach both parts. Here the database and the mailbox sit on the same hosting account, behind passwords several people know.

Email is a poor place for anything secret. A message may cross the internet unencrypted, and copies stay on the mail servers at both ends.

More copies sit on the office computer, in the trash folder, in backups and on every phone that checks the mailbox. Deleting a message in one place leaves the rest.

What the card rules say

Your agreement with the card processor commits the shop to the card industry's security standard, known as PCI DSS. Its rules on card data are plain:

Taken together, the two halves put the food shop on the wrong side of the first three. A shop that never handles card data has far less to meet.

What attackers look for

Small online stores are rarely picked out by name. Automated tools sweep the web for shop software with known flaws and mailboxes with weak passwords, then search whatever they reach for card data.

Partial numbers in a database and the missing digits in an inbox are exactly that. With the expiry date and security code attached, they work for online purchases, which makes them worth stealing.

Size offers no cover. A tool that reaches thousands of stores treats each one the same way.

A payment page run by the processor

Most card processors offer a hosted payment page. At checkout the customer moves to a secure page on the processor's server, enters the card there, and returns with the payment approved.

The shop's site never receives the card number. Staff see the order, the amount and the last four digits, which is all they need for questions and refunds.

Nothing is keyed into the terminal, nothing is emailed, and no card data sits on the server. The yearly security questionnaire from the processor also shrinks to its short version.

Most processors let the payment page show the shop's logo and colours, so customers know they are still dealing with the same business.

A worked example

A tool rental shop beside a builders' supply yard rents concrete mixers, trenchers, tile saws and carpet cleaners, mostly to small contractors. Its website lets customers reserve equipment for a given day.

To hold each booking, the reservation form asked for the card's number, its expiry and the three-digit code. It saved them in the site's database and sent a copy to the counter's email.

The form no longer asks for a card. Equipment with a booking fee sends the customer to the processor's page, and the damage deposit is taken at the counter, by chip and PIN, at pickup.

The card fields were wiped from the database, and the reservation emails were cleared from the mailbox, its trash and the manager's phone. Backup files were checked for copies.

No card number reaches the website or the inbox any more. The only card involved is the one in the customer's hand at the terminal.

Before deleting anything

Unknown admin accounts, strange files on the server or customers reporting fraud after shopping with you are all reasons to call the processor first.

Processors have a set procedure for a suspected compromise, and it usually starts with keeping the evidence intact. Clean up once they say so.

Clearing out the old records

Delete stored security codes first; there is no valid reason to keep a single one. Then delete the stored card numbers, or cut each to its last four digits if staff need a reference.

Clear the order emails from everywhere they live: the office computer, webmail, the trash, archive folders and every phone or tablet that syncs the account.

Look in the backups too, since old database exports and site backups often hold the same numbers. Then change the passwords for the mailbox and the store's admin.

Personal information as well

Card details also count as personal information, which privacy law asks a business to guard and to hold only while it has a use for them.

Which law governs depends on where you operate and how you handle the information, as a few provinces have their own statutes for private companies. Take this as a general sketch, not legal advice on the records your shop keeps.

The counter-case

Carts that pass the card straight to the processor's gateway as the customer pays, and never store or email it, are a different case. A shop with that setup may not need a hosted page.

Check rather than assume. Place a test order, read the email the office receives, and ask whoever maintains the cart to confirm in writing that no card data is kept or logged.

A shop taking only a few orders a month may feel the old method is manageable. The risk sits in each stored number, however few there are.

Taking card data off the site

  1. Read an order email and list every card detail in it.
  2. Ask your processor about its hosted payment page.
  3. Switch the checkout to that page and test an order.
  4. Look for signs of a break-in before deleting anything.
  5. Delete the stored security codes and card numbers.
  6. Clear order emails from mailboxes, phones and backups.
  7. Change the passwords for the mailbox and the store.

Step three turns off the tap. Until the checkout stops collecting card numbers, every cleanup is undone by the next order.

What the processor's quarterly scan probes on a shared server, and which findings belong to the host, is laid out in the card processor's scan that fails a shared server.


Frequently asked questions

Is a card number safe if it is split between the database and an email?

No. Anyone who reaches both parts, often through one hosting account or a shared password, has the whole number, and email leaves copies in many places.

Can we keep the security code until the order is keyed in?

The card rules forbid keeping it once the payment is authorised, even encrypted, and a database or inbox holding codes for later keeps them far too long.

What is a hosted payment page?

A checkout page on your card processor's secure server. Customers type their card details there, the processor approves the payment, and your site receives the order without the number.

What should we do with the old card records?

Delete the security codes at once, delete or shorten the card numbers, and clear the order emails from every mailbox, phone, archive and backup that holds them.

What if someone may already have seen the data?

Call your processor before deleting anything. Processors have a procedure for a suspected compromise, and it usually begins with keeping the evidence intact.

Does a shop with few online orders need to change?

Yes. Automated tools look for card data on any store they can reach, so a handful of stored numbers is still worth taking.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Card numbers in your inbox or database?

Call us before the next order arrives, and we will help move checkout to your processor's page and clear the old records.

Start a Conversation