You are on page 1of 4

 First of all check with your payment gateway that how many types of cards they support, like

Master card, Visa card, American Express, Discover etc.  Then each and every card has specific number of digits as card number. For example say, Discover should have 17 digits only.  Also each card will have an expiry date.  Test the boundary conditions for credit card by giving more than 17 digits and less than 17 digits.      Invalid credit card number. Invalid Expiry date etc Network response Buffer page between application page and payment gateway page URL information with card and amount details

Dummy Credit Card Numbers for Testing Here is a list of dummy credit card number that can be used while testing your applications involving credit card transactions:     Visa: 4111-1111-1111-1111 MasterCard: 5431-1111-1111-1111 Amex: 341-1111-1111-1111 Discover: 6011-6011-6011-6611

Credit Card Prefix Numbers:  Visa: 13 or 16 numbers starting with 4    MasterCard: 16 numbers starting with 5 Discover: 16 numbers starting with 6011 AMEX: 15 numbers starting with 34 or 37

While testing, use only the credit card numbers listed here. Other numbers produce an error.Expiration Date must be a valid date in the future (use the mmyy format). Test Credit Card Account Numbers  Credit Card Type Credit Card Number                American Express 378282246310005 American Express 371449635398431 American Express Corporate 378734493671000 Australian BankCard 5610591081018250 Diners Club 30569309025904 Diners Club 38520000023237 Discover 6011111111111117 Discover 6011000990139424 JCB 3530111333300000 JCB 3566002020360505 MasterCard 5555555555554444 MasterCard 5105105105105100 Visa 4111111111111111 Visa 4012888888881881 Visa 4222222222222

Note : Even though this number has a different character count than the other test numbers, it is the correct and functional number.  Processor-specific Cards

  Dankort (PBS) 76009244561 Dankort (PBS) 5019717010103742 Switch/Solo (Paymentech) 6331101999990016 .

Expiration Date must be a valid date in the future (use the mmyy format).Test Credit Card Account Numbers While testing. Processor-specific Cards Dankort (PBS) Dankort (PBS) Switch/Solo (Paymentech) 76009244561 5019717010103742 6331101999990016 . Other numbers produce an error. use only the credit card numbers listed here. Test Credit Card Account Numbers Credit Card Type American Express American Express American Express Corporate Australian BankCard Diners Club Diners Club Discover Discover JCB JCB MasterCard MasterCard Visa Visa Credit Card Number 378282246310005 371449635398431 378734493671000 5610591081018250 30569309025904 38520000023237 6011111111111117 6011000990139424 3530111333300000 3566002020360505 5555555555554444 5105105105105100 4111111111111111 4012888888881881 4222222222222 Visa Note : Even though this number has a different character count than the other test numbers. it is the correct and functional number.

Also each card will have an expiry date.I involved in a project where we validated the credit cards like. With these validations in mind.. Visa...Each and every type of card will have a specific number of digits as Card Number.. American Express and Discover. Invalid credit card number. Discover should have 17 digits only. we will write test cases like 1.Master Card. 3.. For example say. Invalid Expiry date etc . What we do while testing this is. Test the boundary conditions for credit card by giving more than 17 digits and less than 17 digits.. 2.