Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Location
    Scottsdale. Arizona, USA
    Posts
    34
    Plugin Contributions
    0

    Default Limiting Credit Card Number In Database

    Using 1.3.8a.
    I have only 3 active payment modules.
    Website Payments Pro
    PayPal Express
    Check/Money Order

    Credit card payments store CC numbers in database 'orders' table as "1234xxxxxxxx5678". Expiration date is also stored.
    This bothers my manager who from time to time is concerned about PCI compliance but won't pay for PCI validation. We are SSL and the cart works quite nicely. Not one customer complaint, especially regarding CC numbers in email confirms.

    I looked through a lot of threads but did not get the answer I want.

    Is the PayPal functionality dependant on the first four, last four, and expiration date. The orders have "Do Full Refund" and "Do Partial Refund" buttons which work well. My manager would like no CC storage. The store manager and IT person want last four only, no expiry. I can edit the appropriate php code to change this but am wondering. I have not looked deep enough to answer my question.

    Shame on me for taking the easy way out.
    My apologies, Dr Byte.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Limiting Credit Card Number In Database

    There is absolutely nothing wrong with storing up to the first 6 digits of a credit card number, and the last 4 digits.
    The first 6 are used simply to identify which bank issued the card. Nothing secret or special about that. But Zen Cart only records the first 4, since that's more than enough in most cases.
    The last 4 digits are used to confirm the card number to the customer and for you to confirm the card in a transaction update such as a refund etc.
    That leaves 8 more digits to have to "guess" in order to abuse the card. That's a lotta guessing and would flag up fraud alerts if someone was slamming card numbers to try to guess something anyway.
    The card companies and PCI assessors are satisifed with this approach. In fact, they're the ones who have indicated these limits are acceptable.

    Some folks debate the expiry date issue; however, since the full card number is never stored anywhere and the full card number is required before the expiry date would be of any value, the expiry date is moot and useless, so storing it is essentially a non-issue.


    That said, you're using an old version of Zen Cart which has known security vulnerabilities. That's a far more important thing to fix than the question you're raising. Upgrading your site should be your first priority.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2009
    Location
    Scottsdale. Arizona, USA
    Posts
    34
    Plugin Contributions
    0

    Default Re: Limiting Credit Card Number In Database

    Thanks for responding, Dr Byte.
    I guess my question wasn't clear enough.
    Do you need the first four, last four, and expiry for "Do Full Refund" or "Do Partial Refund" in an order?
    Do you need this for anything other than a memo reason?

    Regarding security, I have installed the security updates in 1.3.8a, and plan to upgrade eventually.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Limiting Credit Card Number In Database

    With PayPal you don't need the card numbers to do refunds. The Transaction ID is all that's required.
    However, some other gateways do require partial card digits for refunds.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 29 Nov 2010, 06:28 AM
  2. Credit Card Number not in Admin OR Database with Offline processing
    By jdw1979 in forum Managing Customers and Orders
    Replies: 4
    Last Post: 9 Dec 2009, 06:09 PM
  3. Stop storing Credit Card Number in Database
    By hujef in forum General Questions
    Replies: 12
    Last Post: 23 Sep 2009, 06:19 PM
  4. Limiting max-purchase amount for Credit Card Payments?
    By mkonchalski in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 19 Jun 2009, 04:54 PM
  5. ALWAYS: The credit card number entered is invalid. Please check the number...
    By smoochinc in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 14 Dec 2007, 10:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg