Handling E-Commerce PaymentsCommerce using the Internet relies solely on trust; users will not use systems that they believe are insecure. This chapter presents best practices compliant with the Payment Card Industry (PCI) guidelines. PCI compliance is mandatory for merchants, third party processors, and service bureaus - not optional. While this chapter summarizes several key PCI DSS requirements and offers implementation guidelines, it is not a substitute for utilizing the PCI DSS as a baseline. There are three documents which are useful in this regards.
These documents can be accessed via the Further Reading section at the bottom of this article. ObjectivesThis chapter sets out to document methods to:
Compliance and LawsIf you are a e-commerce merchant, you must comply with all your local laws, such as all tax acts, trade practices, Sale of Goods (or similar) acts, lemon laws (as applicable), and so on. You should consult a source of legal advice competent for your jurisdiction to find out what is necessary. If you are a credit card merchant, you have agreed to the credit card merchant agreements. Typically, these are extremely strict about the amounts of fraud allowed, and the guidelines for “cardholder not present” transactions. You must read and follow your agreement. If you do not understand your agreement, you should consult with your bank’s merchant support for more information. PCI ComplianceIn brief, here are the twelve requirements you are required to use if you are going to handle credit card payments:
Handling Credit CardsEvery week, we read about yet another business suffering the ultimate humiliation - their entire customer's credit card data stolen... again. What is not stated is that this is often the end of the business (see CardSystems being revoked by Visa and AMEX in the Further Reading section). Customers hate being forced to replace their credit cards and fax in daily or weekly reversals to their bank’s card services. Besides customer inconvenience, merchants breach their merchant agreement with card issuers if they have insufficient security. No merchant agreement is the death knell for modern Internet enabled businesses. This section details how you should handle and store payment transactions. Payment Card Handling Best PracticesThe PCI DSS 1.1 restricts which card data elements can and can not be stored. While the ultimate guide is the PCI DSS document, card handling best practices are summarized below, along with guidelines for implementing the requirements. Following is a summary of Payment Card elements which can, and can't be stored: Storage permitted but protection required:PAN (Primary Account Number) - Must be stored in unreadable form per PCI DSS 3.4. Strong one way hash, truncation, index tokens and pads with secure storage for pads, or strong cryptography with associated key management processes and procedures are allowed. Cardholder Name Service Code Expiration Date The PAN, at the minimum, should not be stored in a readable format. There are a number of commercial database encryption vendors with products that perform column and database level encryption. Used properly, these fulfill the 'strong cryptography with associated key management processes and procedures' requirement. Several are listed in the references at the bottom of this article. This type of solution is typically used for recurring transactions. Sensitive authentication data - storage not allowed:Full magnetic stripe CVC2/CVV2/CID PIN / PIN Block Auth numbersAfter successfully processing a transaction, you are returned an authorization number. This is unique per transaction and has no intrinsic value of its own. It is safe to store this value, write it to logs, present it to staff, and e-mail to the customer. Handling Recurring paymentsAbout the only business reason for storing credit card numbers is recurring payments. However, you have several responsibilities if you support recurring payments:
The problem with encryption is that you must be able to decrypt the data later on in the business process. When choosing a method to store cards in an encrypted form, remember there is no reason why the front-end web server needs to be able to decrypt them. Database-layer column or table level encryption is considered best practice. Displaying portions of the credit cardPCI only allows the presentation of the first six (the BIN) or the last four digits. We strongly urge you to not display the credit card at all if it can be helped. There are many reasons why tracing, sending or presenting a credit card number is handy, but it is not possible to present credit card numbers safely:
Most credit cards consist of 16 digits (although some are 14 or 15 digits, such as Amex): XXXX XXYY YYYY YYYC C is the checksum. X is the BIN number, which refers to the issuing institution. Y is the client's card number. You must not store the CCV, CCV2 and PVV (or PIN Verification Value). These are a credit card validation field used by many payment gateways to protect against imprint fraud as the value is on the reverse of the card. Storing this value is not allowed as per sections 3.2.3 and 3.4.
For these reasons, it is strongly recommended that you do not present the user or your staff with open or obscured credit card numbers. If possible, do not to display any digits of a credit card at all – just the expiration date. Patching and maintenanceThe PCI DSS 6.6 requires that patches are applied within one month of becoming available for any part of your system that stores, processes, or transmits payment card information. Additionally, a formal change management process and patch testing procedure must be in place, utilizing separate development, test, and production environments. ReversalsThere are two potential frauds from reversals: an insider pushing money from the organization's account to a third party, and an outsider who has successfully figured out how to use an automated reversal process to "refund" money which is not owing, for example by using negative numbers.
For example, in Melbourne, Australia in 2001, a trusted staff member used a mobile EFTPOS terminal to siphon off $400,000 from a sporting organization. If the person had been less greedy, she would never have been caught. It is vital to understand the amount of fraud the organization is willing to tolerate. ChargebackA chargeback is a credit card transaction that is billed back to the merchant after the sale has been settled - chargebacks are initiated by the card issuer on behalf of the cardholder. Typically, cardholder disputes involve product delivery failure or product/service dissatisfaction. Card issuers and merchant banks take a dim view of merchants with a high charge back ratio as it costs them a lot of time and money and can indicates a lack of fraud controls.
You can take some simple steps to lower your risk. These are:
Some customers will try charge backs one time too many. Keep tabs on customers who charge back, and decide if they present excessive risk Always ask for the customer's e-mail and phone number that the issuing institution has for the customer. This helps if other red flags pop up. Attackers look for soft targets. Make it known on your website that you prosecute fraud to the fullest extent of the law and all transactions are fully logged. Source OWASP.ORG
Have a question? Feel free to Contact Us
|