improving braintree adapter