lib/active_merchant/billing/credit_card.rb in activemerchant-1.20.2 vs lib/active_merchant/billing/credit_card.rb in activemerchant-1.20.3
- old
+ new
@@ -171,9 +171,13 @@
#
# @return [String] a display-friendly version of the card number
def display_number
self.class.mask(number)
end
+
+ def first_digits
+ self.class.first_digits(number)
+ end
def last_digits
self.class.last_digits(number)
end