Menu

## UniversalCodes
in package

UniversalCodes.php : 19

Object containing wallet-specific URLs for payment protocol.

##### Tags

author

  BitPay Integrations integrations@bitpay.com

license

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

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

  REST API Invoices

### 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

UniversalCodes.php : 21
`protected string|null $paymentString = null`

#### $verificationLink

UniversalCodes.php : 22
`protected string|null $verificationLink = null`

### Methods

#### __construct()

UniversalCodes.php : 24
`public __construct() : mixed`

#### getPaymentString()

UniversalCodes.php : 35

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()

UniversalCodes.php : 59

Gets verification link

`public getVerificationLink() : string|null`

Link to bring user to BitPay ID flow, only present when bitpayIdRequired is true.

##### Return values

string|null

#### setPaymentString()

UniversalCodes.php : 47

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()

UniversalCodes.php : 71

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()

UniversalCodes.php : 81

Gets Universal codes as array

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

##### Return values

array<string|int, mixed> —

universal codes as array

## Search results