lib/active_merchant/billing/check.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/check.rb in activemerchant-1.84.0

- old
+ new

@@ -5,12 +5,12 @@ # not backed by any database. # # You may use Check in place of CreditCard with any gateway that supports it. class Check < Model attr_accessor :first_name, :last_name, - :bank_name, :routing_number, :account_number, - :account_holder_type, :account_type, :number + :bank_name, :routing_number, :account_number, + :account_holder_type, :account_type, :number # Used for Canadian bank accounts attr_accessor :institution_number, :transit_number def name @@ -51,9 +51,10 @@ end def credit_card? false end + # Routing numbers may be validated by calculating a checksum and dividing it by 10. The # formula is: # (3(d1 + d4 + d7) + 7(d2 + d5 + d8) + 1(d3 + d6 + d9))mod 10 = 0 # See http://en.wikipedia.org/wiki/Routing_transit_number#Internal_checksums def valid_routing_number?