diff options
Diffstat (limited to 'billing/config')
-rw-r--r-- | billing/config/initializers/braintree.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/billing/config/initializers/braintree.rb b/billing/config/initializers/braintree.rb index ee21088..523dbce 100644 --- a/billing/config/initializers/braintree.rb +++ b/billing/config/initializers/braintree.rb @@ -1,5 +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 |