Sha256: a819f3c58f290c16247dcdce5ea0cb95532a202c3b8611ef3e41d9b6a842724b

Contents?: true

Size: 1.4 KB

Versions: 11

Compression:

Stored size: 1.4 KB

Contents

module Braintree
  module Test # :nodoc:
    # The constants contained in the Braintree::Test::CreditCardNumbers module provide
    # credit card numbers that should be used when working in the sandbox environment. The sandbox
    # will not accept any credit card numbers other than the ones listed below.
    module CreditCardNumbers
      AmExes = %w[
        378282246310005
        371449635398431
        378734493671000
      ]
      CarteBlanches = %w[30569309025904] # :nodoc:
      DinersClubs = %w[38520000023237] # :nodoc:

      Discovers = %w[
        6011111111111117
        6011000990139424
      ]
      JCBs = %w[3530111333300000 3566002020360505] # :nodoc:

      MasterCard = "5555555555554444"
      MasterCardInternational = "5105105105105100" # :nodoc:

      MasterCards = %w[5105105105105100 5555555555554444]

      Visa = "4012888888881881"
      VisaInternational = "4009348888881881" # :nodoc:

      Visas = %w[
        4009348888881881
        4012888888881881
        4111111111111111
        4222222222222
      ]
      Unknowns = %w[
        1000000000000008
      ]

      module FailsSandboxVerification
        AmEx       = "378734493671000"
        Discover   = "6011000990139424"
        MasterCard = "5105105105105100"
        Visa       = "4222222222222"
        Numbers    = [AmEx, Discover, MasterCard, Visa]
      end

      All = AmExes + Discovers + MasterCards + Visas
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
braintree-2.4.0 lib/braintree/test/credit_card_numbers.rb
braintree-2.3.1 lib/braintree/test/credit_card_numbers.rb
braintree-2.2.0 lib/braintree/test/credit_card_numbers.rb
braintree-2.1.0 lib/braintree/test/credit_card_numbers.rb
braintree-2.0.0 lib/braintree/test/credit_card_numbers.rb
braintree-1.2.1 lib/braintree/test/credit_card_numbers.rb
braintree-1.2.0 lib/braintree/test/credit_card_numbers.rb
braintree-1.1.3 lib/braintree/test/credit_card_numbers.rb
braintree-1.1.2 lib/braintree/test/credit_card_numbers.rb
braintree-1.1.1 lib/braintree/test/credit_card_numbers.rb
braintree-1.1.0 lib/braintree/test/credit_card_numbers.rb