-
Notifications
You must be signed in to change notification settings - Fork 22
Configuration
lyang edited this page Mar 17, 2013
·
5 revisions
All Braintree::Configuration can be set through BraintreeRails::Configuration. Those are just simple delegate.
So the following two are exactly same. Those delegations are provided for your convenience. Feel free to use either one.
BraintreeRails::Configuration.environment = :sandbox
BraintreeRails::Configuration.logger = Logger.new('log/braintree.log')
BraintreeRails::Configuration.merchant_id = ENV['MERCHANT_ID']
BraintreeRails::Configuration.public_key = ENV['PUBLIC_KEY']
BraintreeRails::Configuration.private_key = ENV['PRIVATE_KEY']
Braintree::Configuration.environment = :sandbox
Braintree::Configuration.logger = Logger.new('log/braintree.log')
Braintree::Configuration.merchant_id = ENV['MERCHANT_ID']
Braintree::Configuration.public_key = ENV['PUBLIC_KEY']
Braintree::Configuration.private_key = ENV['PRIVATE_KEY']