# File lib/active_merchant/billing/gateway.rb, line 108 def self.card_brand(source) result = source.respond_to?(:brand) ? source.brand : source.type result.to_s.downcase end