Braintree\Configuration::environment PHP Method

environment() public static method

public static environment ( $value = null )
    public static function environment($value = null)
    {
        if (empty($value)) {
            return self::$global->getEnvironment();
        }
        CredentialsParser::assertValidEnvironment($value);
        self::$global->setEnvironment($value);
    }

Usage Example

 /**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot()
 {
     \Braintree\Configuration::environment('sandbox');
     \Braintree\Configuration::merchantId(env('BRAINTREE_MERCHANT_ID'));
     \Braintree\Configuration::publicKey(env('BRAINTREE_PUBLIC_KEY'));
     \Braintree\Configuration::privateKey(env('BRAINTREE_PRIVATE_KEY'));
 }
All Usage Examples Of Braintree\Configuration::environment