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 28: def valid_expiry_year?(year) 29: (Time.now.year..Time.now.year + 20).include?(year.to_i) 30: end
# File lib/active_merchant/billing/credit_card_methods.rb, line 36 36: def valid_issue_number?(number) 37: number.to_s =~ /^\d{1,2}$/ 38: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.