summaryrefslogtreecommitdiff
path: root/billing/config/initializers/braintree.rb
blob: 523dbceb70c26217a3b8df4b71e2445766bfa0d3 (plain)
1
2
3
4
5
6
7
8
9
10
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