Zum Inhalt springen

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

key()#

public function key(): string

inherited from PaymentQrGenerator

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

ParameterTypeDescription
$invoiceInvoiceData
Returns
bool

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.