module Workarea::Braintree
Constants
- VERSION
Public Class Methods
auto_configure_gateway()
click to toggle source
# File lib/workarea/braintree.rb, line 13 def self.auto_configure_gateway if Rails.application.secrets.braintree.present? self.gateway = ActiveMerchant::Billing::BraintreeGateway.new( Rails.application.secrets.braintree.deep_symbolize_keys.merge( # Do not change this channel: 'Workarea_SP' ) ) else self.gateway = ActiveMerchant::Billing::BogusBraintreeGateway.new end end
gateway()
click to toggle source
# File lib/workarea/braintree.rb, line 26 def self.gateway Workarea.config.gateways.credit_card end
gateway=(gateway)
click to toggle source
# File lib/workarea/braintree.rb, line 30 def self.gateway=(gateway) Workarea.config.gateways.credit_card = gateway end