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