You are here

public static function Braintree_Configuration::protocol in Commerce Braintree 7

returns http protocol depending on environment

@access public @static

Parameters

none:

Return value

string http || https

2 calls to Braintree_Configuration::protocol()
Braintree_Configuration::baseUrl in braintree_php/lib/Braintree/Configuration.php
returns the base braintree gateway URL based on config values
Braintree_ConfigurationTest::testProtocol in braintree_php/tests/unit/ConfigurationTest.php

File

braintree_php/lib/Braintree/Configuration.php, line 275

Class

Braintree_Configuration
acts as a registry for config data.

Code

public static function protocol() {
  return self::sslOn() ? 'https' : 'http';
}