Method: ActiveMerchant::Billing::CreditCard#display_number
- Defined in:
- lib/active_merchant/billing/credit_card.rb
#display_number ⇒ String
Returns a display-friendly version of the card number.
All but the last 4 numbers are replaced with an “X”, and hyphens are inserted in order to improve legibility.
173 174 175 |
# File 'lib/active_merchant/billing/credit_card.rb', line 173 def display_number self.class.mask(number) end |