make sure braintree.environment is a symbol