Class: ActiveMerchant::Billing::BraintreeGateway

Inherits:
Gateway
  • Object
show all
Includes:
BraintreeCommon
Defined in:
lib/active_merchant/billing/gateways/braintree.rb

Constant Summary

Constants inherited from Gateway

Gateway::DEBIT_CARDS

Instance Attribute Summary

Attributes inherited from Gateway

#options

Class Method Summary collapse

Methods included from BraintreeCommon

included

Methods inherited from Gateway

#card_brand, card_brand, inherited, #initialize, supports?, #test?

Methods included from Utils

generate_unique_id

Methods included from CreditCardFormatting

#format

Methods included from RequiresParameters

#requires!

Methods included from PostsData

included, #ssl_get, #ssl_post

Constructor Details

This class inherits a constructor from ActiveMerchant::Billing::Gateway

Class Method Details

.new(options = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/active_merchant/billing/gateways/braintree.rb', line 8

def self.new(options={})
  if options.has_key?(:login)
    BraintreeOrangeGateway.new(options)
  else
    BraintreeBlueGateway.new(options)
  end
end