public static function Braintree_Configuration::portNumber in Commerce Braintree 7
returns the port number depending on environment
@access public @static
Parameters
none:
Return value
int portnumber
2 calls to Braintree_Configuration::portNumber()
- Braintree_Configuration::baseUrl in braintree_php/
lib/ Braintree/ Configuration.php - returns the base braintree gateway URL based on config values
- Braintree_ConfigurationTest::testPortNumber in braintree_php/
tests/ unit/ ConfigurationTest.php
File
- braintree_php/
lib/ Braintree/ Configuration.php, line 259
Class
- Braintree_Configuration
- acts as a registry for config data.
Code
public static function portNumber() {
if (self::sslOn()) {
return 443;
}
return getenv("GATEWAY_PORT") ? getenv("GATEWAY_PORT") : 3000;
}