Constants

VERSION

VERSION

Properties

$ApiLevel

$ApiLevel : 

Type

$ApiSecret

$ApiSecret : 

Type

$MerchantId

$MerchantId : 

Type

$UserID

$UserID : 

Type

$apiBase

$apiBase : 

Type

$testApiBase

$testApiBase : 

Type

$apiVersion

$apiVersion : 

Type

$live

$live : 

Type

$testToken

$testToken : 

Type

Methods

setTestEnvironment()

setTestEnvironment(boolean  $test) : void

setTestEnvironment function.

Accepts a boolean parameter. Used to switch between live and test mode. If boolean true is set, mCASH::setTestToken() needs to be called aswell, passing along the test token.

Parameters

boolean $test

setTestToken()

setTestToken(mixed  $token) : void

setTestToken function.

Parameters

mixed $token

getApiLevel()

getApiLevel() : string

getApiLevel function.

Returns

string

setApiLevel()

setApiLevel(string  $apiLevel) : void

setApiLevel function.

Accepts a string parameter defining the authorization method. (KEY, SECRET, OPEN) If Key or Secret are being used, mCASH::setApiSecret() needs to be used to set the rsa key or password aswell

Parameters

string $apiLevel

getApiSecret()

getApiSecret() : string

getApiSecret function.

Returns

string

setApiSecret()

setApiSecret(mixed  $apiSecret) : void

setApiSecret function.

Parameters

mixed $apiSecret

getMerchantId()

getMerchantId() : string

getMerchantId function.

Returns

string

setMerchantId()

setMerchantId(mixed  $merchantId) : void

setMerchantId function.

Parameters

mixed $merchantId

getUserId()

getUserId() : string

getUserId function.

Returns

string

setUserId()

setUserId(mixed  $userId) : string

setUserId function.

Parameters

mixed $userId

Returns

string

defaultHeaders()

defaultHeaders() : \mCASH\Utilities\Headers

defaultHeaders function.

Returns

\mCASH\Utilities\Headers