Skip to content

API reference / Quittio \ Core \ Pdf \ Qr

PaymentQrGenerator

interface in quittio/core

Quittio\Core\Pdf\Qr\PaymentQrGenerator · Source

Creates the payload of a payment QR code (GiroCode, Swiss QR bill, …).

Methods#

MethodDescription
->key()
->payload()Text content of the QR code, or null if no code can be created.
->supports()

key()#

public function key(): string
Returns
string

payload()#

public function payload(InvoiceData $invoice, array<string, mixed> $options = []): ?string

Text content of the QR code, or null if no code can be created.

ParameterTypeDescription
$invoiceInvoiceData
$optionsarray<string, mixed> = []
Returns
?string

supports()#

public function supports(InvoiceData $invoice): bool
ParameterTypeDescription
$invoiceInvoiceData
Returns
bool

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.