Q&A

Q1: How do I verify the user’s credit card account to make sure that the number the user entered is valid and that we can charge the order to the user’s credit card?
A1: Generally, you contract with a third party to do the credit card validation for your site. When the user submits the order form, you connect with the payment processing company’s computer and submit the credit card number and amount of the transaction in order to verify that the customer’s credit card is valid and can accept the charge. There are a number of companies that provide this service. Two of the most popular are VeriSign (http://www.verisign.com) and CyberSource (http://www.cybersource.com). Most companies that provide this service will give you sample code that ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.