Documentation should mention to not set config
Closed this issue · 6 comments
kurtisnelson commented
The README should note that you have to not set any of the braintree config values for it to work.
gabebw commented
Sure, I can update it - what configuration did you set exactly?
kurtisnelson commented
unless Rails.env.test?
Braintree::Configuration.environment = :sandbox
Braintree::Configuration.merchant_id = ENV['BRAINTREE_ID']
Braintree::Configuration.public_key = ENV['BRAINTREE_PUBLIC_KEY']
Braintree::Configuration.private_key = ENV['BRAINTREE_PRIVATE_KEY']
end
gabebw commented
Ah, great. Thank you.
gabebw commented
I think that the only thing that messes with fake_braintree is setting Braintree::Configuration.environment = :sandbox
. If you set everything else, but don't set that, does it work? I want to be as specific as possible in the docs.
kurtisnelson commented
Yep, that did it.