BraintreeTestCreditCardNumbers

Credit card information used for testing purposes.

Defined (1)

The class is defined in the following location(s).

/classes/lib/Braintree/Braintree/Test/CreditCardNumbers.php  
  1. class CreditCardNumbers 
  2. public static $amExes = [ 
  3. '378282246310005',  
  4. '371449635398431',  
  5. '378734493671000',  
  6. ]; 
  7. public static $carteBlanches = ['30569309025904', ]; 
  8. public static $dinersClubs = ['38520000023237', ]; 
  9. public static $discoverCards = [ 
  10. '6011111111111117',  
  11. '6011000990139424',  
  12. ]; 
  13. public static $JCBs = [ 
  14. '3530111333300000',  
  15. '3566002020360505',  
  16. ]; 
  17.  
  18. public static $masterCard = '5555555555554444'; 
  19. public static $masterCardInternational = '5105105105105100'; 
  20. public static $masterCards = [ 
  21. '5105105105105100',  
  22. '5555555555554444',  
  23. ]; 
  24.  
  25. public static $visa = '4012888888881881'; 
  26. public static $visaInternational = '4009348888881881'; 
  27. public static $visas = [ 
  28. '4009348888881881',  
  29. '4012888888881881',  
  30. '4111111111111111',  
  31. '4000111111111115',  
  32. ]; 
  33.  
  34. public static $unknowns = [ 
  35. '1000000000000008',  
  36. ]; 
  37.  
  38. public static $failsSandboxVerification = [ 
  39. 'AmEx' => '378734493671000',  
  40. 'Discover' => '6011000990139424',  
  41. 'MasterCard' => '5105105105105100',  
  42. 'Visa' => '4000111111111115',  
  43. ]; 
  44.  
  45. public static $amexPayWithPoints = [ 
  46. 'Success' => "371260714673002",  
  47. 'IneligibleCard' => "378267515471109",  
  48. 'InsufficientPoints' => "371544868764018",  
  49. ]; 
  50.  
  51. public static function getAll() 
  52. return array_merge( 
  53. self::$amExes,  
  54. self::$discoverCards,  
  55. self::$masterCards,  
  56. self::$visas 
  57. );