Currencies
in package
Details of what currencies support payments for this wallet
Tags
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
protected
string|null
$code
= null
$dappBrowser
protected
bool|null
$dappBrowser
= null
$image
protected
string|null
$image
= null
$p2p
protected
bool|null
$p2p
= null
$payPro
protected
bool|null
$payPro
= null
$qr
protected
CurrencyQr|null
$qr
= null
$walletConnect
protected
bool|null
$walletConnect
= null
$withdrawalFee
protected
string|null
$withdrawalFee
= null
Methods
__construct()
public
__construct() : mixed
getCode()
Gets code
public
getCode() : string|null
Identifying code for the currency
Return values
string|null —the code
getDappBrowser()
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()
Gets URL that displays currency image
public
getImage() : string|null
Return values
string|null —the image url
getP2p()
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()
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()
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()
Gets wallet connect
public
getWalletConnect() : bool|null
Whether or not this wallet supports walletConnect
Return values
bool|null —the wallet connect
getWithdrawalFee()
Gets Custodial wallet withdrawal fee
public
getWithdrawalFee() : string|null
Return values
string|null —the withdrawal fee
setCode()
Sets code
public
setCode(string $code) : void
Identifying code for the currency
Parameters
- $code : string
-
the code
setDappBrowser()
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()
Sets URL that displays currency image
public
setImage(string $image) : void
Parameters
- $image : string
-
the image url
setP2p()
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()
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()
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()
Sets wallet connect
public
setWalletConnect(bool $walletConnect) : void
Whether or not this wallet supports walletConnect
Parameters
- $walletConnect : bool
-
the wallet connect
setWithdrawalFee()
Sets Custodial wallet withdrawal fee
public
setWithdrawalFee(string $withdrawalFee) : void
Parameters
- $withdrawalFee : string
-
the withdrawal fee
toArray()
Gets Currencies as array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —Currencies as array