# File lib/active_merchant/billing/gateways/braintree_blue.rb, line 18
      def initialize(options = {})
        requires!(options, :merchant_id, :public_key, :private_key)
        @options = options
        @merchant_account_id = options[:merchant_account_id]
        Braintree::Configuration.merchant_id = options[:merchant_id]
        Braintree::Configuration.public_key = options[:public_key]
        Braintree::Configuration.private_key = options[:private_key]
        Braintree::Configuration.environment = (options[:environment] || (test? ? :sandbox : :production)).to_sym
        Braintree::Configuration.logger.level = Logger::ERROR if Braintree::Configuration.logger
        Braintree::Configuration.custom_user_agent = "ActiveMerchant #{ActiveMerchant::VERSION}"
        super
      end