Menu

## Tokens
in package

Tokens.php : 21

Token object used to store the tokens for the different facades.

##### Tags

author

  BitPay Integrations integrations@bitpay.com

license

  http://www.opensource.org/licenses/mit-license.php MIT

### Table of Contents

#### Properties

$merchant : string|null
$payout : string|null
$pos : string|null

#### Methods

__construct() : mixed
  Tokens constructor.
getPayoutToken() : string|null
getTokenByFacade() : string|null
loadFromArray() : Tokens
setMerchantToken() : void
setPayoutToken() : void

### Properties

#### $merchant

Tokens.php : 26
`protected string|null $merchant`

#### $payout

Tokens.php : 31
`protected string|null $payout`

#### $pos

Tokens.php : 36
`protected string|null $pos`

### Methods

#### __construct()

Tokens.php : 44

Tokens constructor.

`public __construct([string|null $merchant = null ][, string|null $payout = null ][, string|null $pos = null ]) : mixed`

##### Parameters

$merchant : string|null = null
$payout : string|null = null
$pos : string|null = null

#### getPayoutToken()

Tokens.php : 88
`public getPayoutToken() : string|null`

##### Return values

string|null

#### getTokenByFacade()

Tokens.php : 67
`public getTokenByFacade( $facade) : string|null`

##### Parameters

$facade :

##### Tags

throws
  Exception

##### Return values

string|null

#### loadFromArray()

Tokens.php : 51
`public static loadFromArray(array<string|int, mixed> $tokens) : Tokens`

##### Parameters

$tokens : array<string|int, mixed>

##### Return values

Tokens

#### setMerchantToken()

Tokens.php : 80
`public setMerchantToken(string $merchant) : void`

##### Parameters

$merchant : string

#### setPayoutToken()

Tokens.php : 96
`public setPayoutToken(string $payout) : void`

##### Parameters

$payout : string

## Search results