Module ActiveMerchant::Billing::CreditCardMethods::ClassMethods
In: lib/active_merchant/billing/credit_card_methods.rb

Methods

Public Instance methods

Checks to see if the calculated type matches the specified type

Returns a string containing the type of card from the list of known information below. Need to check the cards in a particular order, as there is some overlap of the allowable ranges

Returns true if it validates. Optionally, you can pass a card type as an argument and make sure it is of the correct type.

References:

[Validate]