The most popular way to transmit credit card data securely over the Web is with the secure socket layer (SSL) protocol.
You (or your Web hosting provider) will need to use a Web server that supports SSL, and your customers' Web browser must also support SSL (most, if not all, do). You'll also need a digital certificate that identifies you as a legitimate business. These certificates are available for a fee from companies such as VeriSign, and many hosting providers will handle this for you for a small fee.

