CreditCardNumbers.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. namespace Braintree\Test;
  3. /**
  4. * Credit card information used for testing purposes
  5. *
  6. * The constants contained in the Test\CreditCardNumbers class provide
  7. * credit card numbers that should be used when working in the sandbox environment.
  8. * The sandbox will not accept any credit card numbers other than the ones listed below.
  9. *
  10. * @package Braintree
  11. * @subpackage Test
  12. */
  13. class CreditCardNumbers
  14. {
  15. public static $amExes = [
  16. '378282246310005',
  17. '371449635398431',
  18. '378734493671000',
  19. ];
  20. public static $carteBlanches = ['30569309025904',];
  21. public static $dinersClubs = ['38520000023237',];
  22. public static $discoverCards = [
  23. '6011111111111117',
  24. '6011000990139424',
  25. ];
  26. public static $JCBs = [
  27. '3530111333300000',
  28. '3566002020360505',
  29. ];
  30. public static $masterCard = '5555555555554444';
  31. public static $masterCardInternational = '5105105105105100';
  32. public static $masterCards = [
  33. '5105105105105100',
  34. '5555555555554444',
  35. ];
  36. public static $visa = '4012888888881881';
  37. public static $visaInternational = '4009348888881881';
  38. public static $visas = [
  39. '4009348888881881',
  40. '4012888888881881',
  41. '4111111111111111',
  42. '4000111111111115',
  43. ];
  44. public static $unknowns = [
  45. '1000000000000008',
  46. ];
  47. public static $failsSandboxVerification = [
  48. 'AmEx' => '378734493671000',
  49. 'Discover' => '6011000990139424',
  50. 'MasterCard' => '5105105105105100',
  51. 'Visa' => '4000111111111115',
  52. ];
  53. public static $amexPayWithPoints = [
  54. 'Success' => "371260714673002",
  55. 'IneligibleCard' => "378267515471109",
  56. 'InsufficientPoints' => "371544868764018",
  57. ];
  58. public static $disputes = [
  59. 'Chargeback' => '4023898493988028',
  60. ];
  61. public static function getAll()
  62. {
  63. return array_merge(
  64. self::$amExes,
  65. self::$discoverCards,
  66. self::$masterCards,
  67. self::$visas
  68. );
  69. }
  70. }
  71. class_alias('Braintree\Test\CreditCardNumbers', 'Braintree_Test_CreditCardNumbers');