Method: ActiveMerchant::Billing::CreditCard#display_number

Defined in:
lib/active_merchant/billing/credit_card.rb

#display_numberObject

Show the card number, with all but last 4 numbers replace with “X”. (XXXX-XXXX-XXXX-4338)



94
95
96
# File 'lib/active_merchant/billing/credit_card.rb', line 94

def display_number
  self.class.mask(number)
end