/** * * @param Braintree_Gateway $gateway */ public function __construct($gateway) { $this->_gateway = $gateway; $this->_config = $gateway->config; $this->_config->assertHasAccessTokenOrKeys(); $this->_http = new Braintree_Http($gateway->config); }
function testValidWithOAuthClientCredentialsAndAccessToken() { $config = new Braintree_Configuration(array('clientId' => 'client_id$development$integration_client_id', 'clientSecret' => 'client_secret$development$integration_client_secret', 'accessToken' => 'access_token$development$integration_merchant_id$integration_access_token')); $config->assertHasClientCredentials(); $config->assertHasAccessTokenOrKeys(); }