BitPay PHP SDK

UniversalCodes
in package

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

protected string|null $verificationLink = null

Methods

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

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

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

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


        
On this page

Search results