Skip to content

API reference / Quittio \ Core \ Pdf \ Qr

ProvidesPaymentSlip

interface in quittio/core · extends PaymentQrGenerator

Quittio\Core\Pdf\Qr\ProvidesPaymentSlip · Source

A payment QR code generator whose code belongs on a payment slip of its own, e.g. the payment part and receipt of the Swiss QR bill. The default templates then print the slip at the bottom of a page of its own instead of the small code next to the bank details.

Methods#

MethodDescription
->key()Payment QR code type of the generator, e.g. "girocode" or "swiss-qr-bill". A presentation that asks for this type uses the generator of the country pack with this key.
->payload()Text content of the QR code, or null if no code can be created.
->slip()The texts of the slip for the code $payload in the locale; null for none.
->supports()Whether the invoice qualifies for the code (currency, payment means, amount due …). Without it no code is printed, unless an explicit amount is given (payment reminders).

key()#

public function key(): string

inherited from PaymentQrGenerator

Payment QR code type of the generator, e.g. "girocode" or "swiss-qr-bill". A presentation that asks for this type uses the generator of the country pack with this key.

Returns
string

payload()#

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

inherited from PaymentQrGenerator

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

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

slip()#

public function slip(InvoiceData $invoice, string $payload, string $locale): ?PaymentSlip

The texts of the slip for the code $payload in the locale; null for none.

ParameterTypeDescription
$invoiceInvoiceData
$payloadstring
$localestring
Returns
?PaymentSlip

supports()#

public function supports(InvoiceData $invoice): bool

inherited from PaymentQrGenerator

Whether the invoice qualifies for the code (currency, payment means, amount due …). Without it no code is printed, unless an explicit amount is given (payment reminders).

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.