diff options
Diffstat (limited to 'billing/config/initializers/braintree.rb')
-rw-r--r-- | billing/config/initializers/braintree.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/billing/config/initializers/braintree.rb b/billing/config/initializers/braintree.rb new file mode 100644 index 0000000..523dbce --- /dev/null +++ b/billing/config/initializers/braintree.rb @@ -0,0 +1,11 @@ +require 'braintree_test_app' + +Braintree::Configuration.logger = Logger.new('log/braintree.log') +Braintree::Configuration.environment = :sandbox +Braintree::Configuration.merchant_id = "bwrdyczvjspmxjhb" +Braintree::Configuration.public_key = "jmw58nbmjg84prbp" +Braintree::Configuration.private_key = "SET_ME" + +if Rails.env.test? + Rails.application.config.middleware.use BraintreeTestApp +end |