public function initialize(array $parameters = array()) { $parentInitialize = Parent::initialize($parameters); Braintree\Configuration::reset(); Braintree\Configuration::environment($this->getTestMode()); Braintree\Configuration::merchantId($this->getMerchantId()); Braintree\Configuration::publicKey($this->getPublicKey()); Braintree\Configuration::privateKey($this->getPrivateKey()); return $parentInitialize; }