Class: GimmeGimme::Gateway

Inherits:
Object
  • Object
show all
Defined in:
lib/gimme_gimme/gateway.rb

Class Method Summary collapse

Class Method Details

.authorize_net_gatewayObject



3
4
5
6
7
8
# File 'lib/gimme_gimme/gateway.rb', line 3

def self.authorize_net_gateway
  ActiveMerchant::Billing::AuthorizeNetCimGateway.new(
    :login    => AUTHORIZE_NET_API_LOGIN_ID,
    :password => AUTHORIZE_NET_TRANSACTION_KEY
  )
end

.braintree_gatewayObject



10
11
12
13
14
15
16
# File 'lib/gimme_gimme/gateway.rb', line 10

def self.braintree_gateway
  ActiveMerchant::Billing::BraintreeBlueGateway.new(
    :merchant_id => BRAINTREE_API_MERCHANT_ID,
    :public_key  => BRAINTREE_API_PUBLIC_KEY,
    :private_key => BRAINTREE_API_PRIVATE_KEY
  )
end