Convenience methods that can be included into a custom Credit Card object, such as an ActiveRecord based Credit Card object.
# File lib/active_merchant/billing/credit_card_methods.rb, line 28 def valid_expiry_year?(year) (Time.now.year..Time.now.year + 20).include?(year.to_i) end
# File lib/active_merchant/billing/credit_card_methods.rb, line 36 def valid_issue_number?(number) number.to_s =~ /^\d{1,2}$/ end
Generated with the Darkfish Rdoc Generator 2.