UniversalCodes
in package
Object containing wallet-specific URLs for payment protocol.
Tags
Table of Contents
Properties
- $paymentString : string|null
- $verificationLink : string|null
Methods
- __construct() : mixed
- getPaymentString() : string|null
- Gets payment string
- getVerificationLink() : string|null
- Gets verification link
- setPaymentString() : void
- Sets payment string
- setVerificationLink() : void
- Sets verification link
- toArray() : array<string|int, mixed>
- Gets Universal codes as array
Properties
$paymentString
protected
string|null
$paymentString
= null
$verificationLink
protected
string|null
$verificationLink
= null
Methods
__construct()
public
__construct() : mixed
getPaymentString()
Gets payment string
public
getPaymentString() : string|null
Payment protocol URL for selected wallet, defaults to BitPay URL if no wallet selected.
Return values
string|null —the payment string
getVerificationLink()
Gets verification link
public
getVerificationLink() : string|null
Link to bring user to BitPay ID flow, only present when bitpayIdRequired is true.
Return values
string|nullsetPaymentString()
Sets payment string
public
setPaymentString(string $paymentString) : void
Payment protocol URL for selected wallet, defaults to BitPay URL if no wallet selected.
Parameters
- $paymentString : string
-
the payment string
setVerificationLink()
Sets verification link
public
setVerificationLink(string $verificationLink) : void
Link to bring user to BitPay ID flow, only present when bitpayIdRequired is true.
Parameters
- $verificationLink : string
-
the verification link
toArray()
Gets Universal codes as array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —universal codes as array