osCmax v2.5 User Manual
Results 1 to 5 of 5

Credit Card number problems!

This is a discussion on Credit Card number problems! within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, I have a question on the Extra Order Information. In the ADMIN section under catalog/admin/modules/payments/cc.php yo have a box ...

      
  1. #1
    New Member
    Join Date
    Sep 2003
    Location
    South Carolina
    Posts
    11
    Rep Power
    0


    Default Credit Card number problems!

    Hi,

    I have a question on the Extra Order Information.

    In the ADMIN section under catalog/admin/modules/payments/cc.php yo have a box where you can add an email for additional checkout information to be sent to whom ever you like.

    This is the wording of the box: CC Split Credit Card E-Mail Address If an e-mail address is entered, the middle digits of the credit card number will be sent to the e-mail address (the outside digits are stored in the database with the middle digits censored)

    I am using this feature to send myself the CVV number that is collected on my site in a separate email where the rest of the order information is not seen (for security purposes).

    The problem is when you use this feature it also censors the middle 8 digits of the credit card information on the ADMIN section of the orders. So when you go to edit orders or copy the credit card information for punching into Quickbooks... it is missing the middle 8 digits.

    So my question is: Can you turn off the command (wherever it is) that tells the "Extra Order Email" to "censor" out the middle digits of the Credit card information?

    Thanks
    Leon

  2. #2
    Active Member
    Join Date
    May 2003
    Posts
    148
    Rep Power
    0


    Default

    well the line your looking for is:

    Code:
     'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),
    look under catalog/includes/modules/payment/cc.php around line # 137

  3. #3
    New Member
    Join Date
    Sep 2003
    Location
    South Carolina
    Posts
    11
    Rep Power
    0


    Default

    Quote Originally Posted by Arpit
    well the line your looking for is:

    Code:
     'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),
    look under catalog/includes/modules/payment/cc.php around line # 137
    Yes you are right.... there it is.

    Do you know how to tell it to NOT X out the middle four numbers?

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    It is a VERY BAD idea to do so. Since the CC is stored in plaintext in the DB, you want it obfuscated in some way. If you don't, you are liable for any damages that occur (and your merchant provider, if they find out, may pull your account on you.) Not to mention how easy it is to get into a database and harvest all the unencrypted cc numbers.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Active Member
    Join Date
    May 2003
    Posts
    148
    Rep Power
    0


    Default

    You got that right

Similar Threads

  1. Credit Card Verification Number
    By gamerevolt in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 09-08-2006, 10:29 AM
  2. Credit Card problems
    By lem in forum osCMax v1.7 Installation
    Replies: 3
    Last Post: 05-16-2006, 01:50 PM
  3. GPG with CVV2 and Blank GPG Email no credit Card Number?
    By tmullins in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 12-26-2005, 08:31 PM
  4. Problems with Secure Credit Card - GPG
    By nscmonkey in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 07-09-2004, 01:27 PM
  5. Credit Card Number is invalid message!!
    By Anonymous in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 11-27-2002, 12:54 PM

Bookmarks

Posting Permissions

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