lib/active_merchant/billing/credit_card_methods.rb
# 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:
# - http://perl.about.com/compute/perl/library/nosearch/P073000.htm
# - http://www.beachnet.com/~hstiles/cardtype.html
Returns true if it validates. Optionally, you can pass a card type as an argument and
make sure it is of the correct type.


Returns true if it validates . Optionally you can pass a card type as an argument and make sure it is of the correct type .
def valid_number?(number)
          valid_test_mode_card_number?(number) || 
            valid_card_number_length?(number) && 
            valid_checksum?(number)
        end
def valid_number? ( number ) valid_test_mode_card_number? ( number ) || valid_card_number_length? ( number ) && valid_checksum? ( number ) end
Returns true if it validates.
Returns true if it validates .
number
<not_specific>