Best Practices

CyberSource has collected practical operating advice based upon the integration experiences of our customer base. Within this section, you will find useful pieces of information which will facilitate the design and development of your site. Please be sure to contact the Implementation Support team for additional suggestions based upon your business rules.

Credit Card Account Number Verification - Card Type Identification

Information on how to identify the credit card type based on the numeric range and based on the length of the credit card number.

Avoiding Chargebacks

Outlines the steps you can take to avoid chargebacks. Also provides links to Visa and Mastercard website to learn more about chargebacks.

Best Practices For Service Disruptions

To minimize business disruption and consumer dissatisfaction, CyberSource recommends that merchants consider some or all of the best practices for handling outages.

Credit Card Account Number Verification - Check Digit Scheme

This self-checking scheme (referred to as the Luhn Mod-10 Method) is an international standard for validating credit card account numbers.

Preventing Double Orders

This small bit of JavaScript will prevent an order from being submitted more than once.

Postal/ISO Information

Useful information about domestic state codes, Canadian providences, and ISO country codes.

Best Practices for Communicating with CyberSource

Suggestions for the maintenance and troubleshooting of your communication with CyberSource servers.

Perl and C Code Samples

The Perl code sample can be added to a form to verify an address by asking the user to enter it twice. The C code sample will parse HTML files in C CGI scripts; this will allow you to use page templates and dynamically create result pages.