PHP 클래스 Braintree\Configuration

파일 보기 프로젝트 열기: braintree/braintree_php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$global

공개 메소드들

메소드 설명
__construct ( $attribs = [] )
assertGlobalHasAccessTokenOrKeys ( )
assertHasAccessTokenOrKeys ( )
assertHasClientCredentials ( )
assertHasClientId ( )
assertHasClientSecret ( )
authUrl ( )
baseUrl ( ) : string returns the base braintree gateway URL based on config values
caFile ( $sslPath = NULL ) : string sets the physical path for the location of the CA certs
environment ( $value = null )
gateway ( )
getAccessToken ( )
getClientId ( )
getClientSecret ( )
getEnvironment ( )
getMerchantId ( )
getPrivateKey ( )
getProxyHost ( )
getProxyPassword ( )
getProxyPort ( )
getProxyType ( )
getProxyUser ( )
getPublicKey ( )
getTimeout ( )
isAccessToken ( )
isAuthenticatedProxy ( ) : boolean Specified whether or not a username and password have been provided for use with an authenticated proxy
isClientCredentials ( )
isUsingProxy ( ) : boolean Specifies whether or not a proxy is properly configured
logMessage ( string $message ) log message to default logger
merchantId ( $value = null )
merchantPath ( ) : string sets the merchant path based on merchant ID
portNumber ( ) : integer returns the port number depending on environment
privateKey ( $value = null )
protocol ( ) : string returns http protocol depending on environment
proxyHost ( string $value = null ) : string Sets or gets the proxy host to use for connecting to Braintree
proxyPassword ( $value = null )
proxyPort ( string $value = null ) : string Sets or gets the port of the proxy to use for connecting to Braintree
proxyType ( string $value = null ) : string Sets or gets the proxy type to use for connecting to Braintree. This value can be any of the CURLOPT_PROXYTYPE options in PHP cURL.
proxyUser ( $value = null )
publicKey ( $value = null )
reset ( ) resets configuration to default
serverName ( ) : string returns gateway server name depending on environment
setEnvironment ( $value ) Do not use this method directly. Pass in the environment to the constructor.
setMerchantId ( $value ) Do not use this method directly. Pass in the merchantId to the constructor.
setPrivateKey ( $value ) Do not use this method directly. Pass in the privateKey to the constructor.
setPublicKey ( $value ) Do not use this method directly. Pass in the publicKey to the constructor.
sslOn ( ) : boolean returns boolean indicating SSL is on or off for this session, depending on environment
timeout ( integer $value = null ) : integer Sets or gets the read timeout to use for making requests.

비공개 메소드들

메소드 설명
setProxyHost ( $value )
setProxyPassword ( $value )
setProxyPort ( $value )
setProxyType ( $value )
setProxyUser ( $value )
setTimeout ( $value )

메소드 상세

__construct() 공개 메소드

public __construct ( $attribs = [] )

assertGlobalHasAccessTokenOrKeys() 공개 정적인 메소드

assertHasAccessTokenOrKeys() 공개 메소드

assertHasClientCredentials() 공개 메소드

assertHasClientId() 공개 메소드

public assertHasClientId ( )

assertHasClientSecret() 공개 메소드

authUrl() 공개 메소드

public authUrl ( )

baseUrl() 공개 메소드

returns the base braintree gateway URL based on config values
public baseUrl ( ) : string
리턴 string braintree gateway URL

caFile() 공개 메소드

sets the physical path for the location of the CA certs
public caFile ( $sslPath = NULL ) : string
리턴 string filepath

environment() 공개 정적인 메소드

public static environment ( $value = null )

gateway() 공개 정적인 메소드

public static gateway ( )

getAccessToken() 공개 메소드

public getAccessToken ( )

getClientId() 공개 메소드

public getClientId ( )

getClientSecret() 공개 메소드

public getClientSecret ( )

getEnvironment() 공개 메소드

public getEnvironment ( )

getMerchantId() 공개 메소드

public getMerchantId ( )

getPrivateKey() 공개 메소드

public getPrivateKey ( )

getProxyHost() 공개 메소드

public getProxyHost ( )

getProxyPassword() 공개 메소드

public getProxyPassword ( )

getProxyPort() 공개 메소드

public getProxyPort ( )

getProxyType() 공개 메소드

public getProxyType ( )

getProxyUser() 공개 메소드

public getProxyUser ( )

getPublicKey() 공개 메소드

public getPublicKey ( )

getTimeout() 공개 메소드

public getTimeout ( )

isAccessToken() 공개 메소드

public isAccessToken ( )

isAuthenticatedProxy() 공개 정적인 메소드

Specified whether or not a username and password have been provided for use with an authenticated proxy
public static isAuthenticatedProxy ( ) : boolean
리턴 boolean true if both proxyUser and proxyPassword are present

isClientCredentials() 공개 메소드

public isClientCredentials ( )

isUsingProxy() 공개 정적인 메소드

Specifies whether or not a proxy is properly configured
public static isUsingProxy ( ) : boolean
리턴 boolean true if a proxy is configured properly, false if not

logMessage() 공개 메소드

log message to default logger
public logMessage ( string $message )
$message string

merchantId() 공개 정적인 메소드

public static merchantId ( $value = null )

merchantPath() 공개 메소드

sets the merchant path based on merchant ID
public merchantPath ( ) : string
리턴 string merchant path uri

portNumber() 공개 메소드

returns the port number depending on environment
public portNumber ( ) : integer
리턴 integer portnumber

privateKey() 공개 정적인 메소드

public static privateKey ( $value = null )

protocol() 공개 메소드

returns http protocol depending on environment
public protocol ( ) : string
리턴 string http || https

proxyHost() 공개 정적인 메소드

Sets or gets the proxy host to use for connecting to Braintree
public static proxyHost ( string $value = null ) : string
$value string If provided, sets the proxy host
리턴 string The proxy host used for connecting to Braintree

proxyPassword() 공개 정적인 메소드

public static proxyPassword ( $value = null )

proxyPort() 공개 정적인 메소드

Sets or gets the port of the proxy to use for connecting to Braintree
public static proxyPort ( string $value = null ) : string
$value string If provided, sets the port of the proxy
리턴 string The port of the proxy used for connecting to Braintree

proxyType() 공개 정적인 메소드

Sets or gets the proxy type to use for connecting to Braintree. This value can be any of the CURLOPT_PROXYTYPE options in PHP cURL.
public static proxyType ( string $value = null ) : string
$value string If provided, sets the proxy type
리턴 string The proxy type used for connecting to Braintree

proxyUser() 공개 정적인 메소드

public static proxyUser ( $value = null )

publicKey() 공개 정적인 메소드

public static publicKey ( $value = null )

reset() 공개 정적인 메소드

resets configuration to default
public static reset ( )

serverName() 공개 메소드

returns gateway server name depending on environment
public serverName ( ) : string
리턴 string server domain name

setEnvironment() 공개 메소드

Do not use this method directly. Pass in the environment to the constructor.
public setEnvironment ( $value )

setMerchantId() 공개 메소드

Do not use this method directly. Pass in the merchantId to the constructor.
public setMerchantId ( $value )

setPrivateKey() 공개 메소드

Do not use this method directly. Pass in the privateKey to the constructor.
public setPrivateKey ( $value )

setPublicKey() 공개 메소드

Do not use this method directly. Pass in the publicKey to the constructor.
public setPublicKey ( $value )

sslOn() 공개 메소드

returns boolean indicating SSL is on or off for this session, depending on environment
public sslOn ( ) : boolean
리턴 boolean

timeout() 공개 정적인 메소드

Sets or gets the read timeout to use for making requests.
public static timeout ( integer $value = null ) : integer
$value integer If provided, sets the read timeout
리턴 integer The read timeout used for connecting to Braintree

프로퍼티 상세

$global 공개적으로 정적으로 프로퍼티

public static $global