Menu

## Currencies
in package

Currencies.php : 19

Details of what currencies support payments for this wallet

##### Tags

author

  BitPay Integrations integrations@bitpay.com

license

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

see
  https://bitpay.readme.io/reference/wallets

  Wallets

### Table of Contents

#### Properties

$code : string|null
$dappBrowser : bool|null
$image : string|null
$p2p : bool|null
$payPro : bool|null
$qr : CurrencyQr|null
$walletConnect : bool|null
$withdrawalFee : string|null

#### Methods

__construct() : mixed
getCode() : string|null
  Gets code
getDappBrowser() : bool|null
  Gets Dapp Browser
getImage() : string|null
  Gets URL that displays currency image
getP2p() : bool|null
  Gets p2p
getPayPro() : bool|null
  Gets pay pro
getQr() : CurrencyQr|null
  Gets CurrencyQr
getWalletConnect() : bool|null
  Gets wallet connect
getWithdrawalFee() : string|null
  Gets Custodial wallet withdrawal fee
setCode() : void
  Sets code
setDappBrowser() : void
  Sets Dapp Browser
setImage() : void
  Sets URL that displays currency image
setP2p() : void
  Sets p2p
setPayPro() : void
  Sets pay pro
setQr() : void
  Sets CurrencyQr
setWalletConnect() : void
  Sets wallet connect
setWithdrawalFee() : void
  Sets Custodial wallet withdrawal fee
toArray() : array<string|int, mixed>
  Gets Currencies as array

### Properties

#### $code

Currencies.php : 21
`protected string|null $code = null`

#### $dappBrowser

Currencies.php : 23
`protected bool|null $dappBrowser = null`

#### $image

Currencies.php : 24
`protected string|null $image = null`

#### $p2p

Currencies.php : 22
`protected bool|null $p2p = null`

#### $payPro

Currencies.php : 25
`protected bool|null $payPro = null`

#### $qr

Currencies.php : 26
`protected CurrencyQr|null $qr = null`

#### $walletConnect

Currencies.php : 28
`protected bool|null $walletConnect = null`

#### $withdrawalFee

Currencies.php : 27
`protected string|null $withdrawalFee = null`

### Methods

#### __construct()

Currencies.php : 30
`public __construct() : mixed`

#### getCode()

Currencies.php : 41

Gets code

`public getCode() : string|null`

Identifying code for the currency

##### Return values

string|null —

the code

#### getDappBrowser()

Currencies.php : 89

Gets Dapp Browser

`public getDappBrowser() : bool|null`

Indicates that this payment method operates via a browser plugin interacting with the invoice

##### Return values

bool|null —

the dapp browser

#### getImage()

Currencies.php : 111

Gets URL that displays currency image

`public getImage() : string|null`

##### Return values

string|null —

the image url

#### getP2p()

Currencies.php : 65

Gets p2p

`public getP2p() : bool|null`

Indicates that this is a peer to peer (p2p) payment method (as opposed to payment protocol)

##### Return values

bool|null —

the p2p

#### getPayPro()

Currencies.php : 133

Gets pay pro

`public getPayPro() : bool|null`

Whether or not BitPay Payment Protocol is supported on this particular currency option

##### Return values

bool|null —

the pay pro

#### getQr()

Currencies.php : 157

Gets CurrencyQr

`public getQr() : CurrencyQr|null`

Object containing QR code related information to show for this payment method

##### Return values

CurrencyQr|null —

the qr

#### getWalletConnect()

Currencies.php : 201

Gets wallet connect

`public getWalletConnect() : bool|null`

Whether or not this wallet supports walletConnect

##### Return values

bool|null —

the wallet connect

#### getWithdrawalFee()

Currencies.php : 179

Gets Custodial wallet withdrawal fee

`public getWithdrawalFee() : string|null`

##### Return values

string|null —

the withdrawal fee

#### setCode()

Currencies.php : 53

Sets code

`public setCode(string $code) : void`

Identifying code for the currency

##### Parameters

$code : string

  the code

#### setDappBrowser()

Currencies.php : 101

Sets Dapp Browser

`public setDappBrowser(bool $dappBrowser) : void`

Indicates that this payment method operates via a browser plugin interacting with the invoice

##### Parameters

$dappBrowser : bool

  the dapp browser

#### setImage()

Currencies.php : 121

Sets URL that displays currency image

`public setImage(string $image) : void`

##### Parameters

$image : string

  the image url

#### setP2p()

Currencies.php : 77

Sets p2p

`public setP2p(bool $p2p) : void`

Indicates that this is a peer to peer (p2p) payment method (as opposed to payment protocol)

##### Parameters

$p2p : bool

  the p2p

#### setPayPro()

Currencies.php : 145

Sets pay pro

`public setPayPro(bool $payPro) : void`

Whether or not BitPay Payment Protocol is supported on this particular currency option

##### Parameters

$payPro : bool

  the pay pro

#### setQr()

Currencies.php : 169

Sets CurrencyQr

`public setQr(CurrencyQr $qr) : void`

Object containing QR code related information to show for this payment method

##### Parameters

$qr : CurrencyQr

  the currency qr

#### setWalletConnect()

Currencies.php : 213

Sets wallet connect

`public setWalletConnect(bool $walletConnect) : void`

Whether or not this wallet supports walletConnect

##### Parameters

$walletConnect : bool

  the wallet connect

#### setWithdrawalFee()

Currencies.php : 189

Sets Custodial wallet withdrawal fee

`public setWithdrawalFee(string $withdrawalFee) : void`

##### Parameters

$withdrawalFee : string

  the withdrawal fee

#### toArray()

Currencies.php : 223

Gets Currencies as array

`public toArray() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

Currencies as array

## Search results