Credit Card Testing

Credit card related testing is vast field and sometimes it requires more information on it. I have try to write some tips for testing Credit card Application. There may be chances for more scenarios, but I just tried my best.

  • 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 
Share
Related Documents
  1. Top 20 practical software testing tips you should read before testing any application. (4601)
  2. Selenium Automation Testing Framework for Functional Testing of Web Applications (12956)
  3. Context driven testing + Risk based testing (3374)
  4. Web Testing: Complete guide on testing web applications (5857)
  5. The future of software testing Part one Testing in production (2519)
  6. WINDOWS APPLICATION TESTING AND WEB APPLICATION TESTING (3830)
  7. [Free] Ballista OS Robustness Test Suite : testing POSIX function robustness (1933)
  8. WebSite Cookie Testing (3407)
  9. Exploratory Testing - Risk-Based Agile Testing (4166)
  10. Website Cookie Testing, Test cases for testing web application cookies? (3738)
  11. LUHN ALGORITHM TO VALIDATE CREDIT/DEBIT CARDS (1704)
  12. Website Cookie Testing, Test cases for testing web application cookies? (5249)
  13. Software Testing-Testing Validation (3868)
  14. Mobile Application Testing (14441)
  15. Load & performance testing tools (3368)
  16. Negative testing (926)
  17. [Free] Sikuli : Automate and test graphical user interfaces (GUI) (4522)
  18. Checklist for Testing the Compatibility and Portability of Web Applications (2437)
  19. Factors influencing Acceptance Testing (1314)
  20. Testing Data Warehouse Applications (1759)