public static function Braintree_Configuration::sslOn in Commerce Braintree 7
returns boolean indicating SSL is on or off for this session, depending on environment
@access public @static
Parameters
none:
Return value
boolean
4 calls to Braintree_Configuration::sslOn()
- Braintree_Configuration::portNumber in braintree_php/
lib/ Braintree/ Configuration.php - returns the port number depending on environment
- Braintree_Configuration::protocol in braintree_php/
lib/ Braintree/ Configuration.php - returns http protocol depending on environment
- Braintree_ConfigurationTest::testSSLOn in braintree_php/
tests/ unit/ ConfigurationTest.php - Braintree_Http::_doRequest in braintree_php/
lib/ Braintree/ Http.php
File
- braintree_php/
lib/ Braintree/ Configuration.php, line 318
Class
- Braintree_Configuration
- acts as a registry for config data.
Code
public static function sslOn() {
switch (self::environment()) {
case 'development':
$ssl = false;
break;
case 'production':
case 'qa':
case 'sandbox':
default:
$ssl = true;
break;
}
return $ssl;
}