Skip to content

API reference / Quittio \ Core \ Enums

PaymentMeansCode

string-backed enum in quittio/core · uses HasLabel

Quittio\Core\Enums\PaymentMeansCode · Source

Payment means type code (BT-81), UNTDID 4461. Further codes can be used as RawCode.

Cases#

CaseValueDescription
NotDefined'1'
Cash'10'
Cheque'20'
CreditTransfer'30'
DebitTransfer'31'
PaymentToBankAccount'42'
BankCard'48'
DirectDebit'49'
CreditCard'54'
DebitCard'55'
StandingAgreement'57'
SepaCreditTransfer'58'
SepaDirectDebit'59'
OnlinePaymentService'68'
Clearing'97'
MutuallyDefined'ZZZ'

Methods#

MethodDescription
::isValidCode()Whether a raw code value is valid according to the official code list.
->label()Translated label of the code in $locale (null: the translator's locale), e.g. "Stunde" for HUR; the code itself when neither $locale nor English has a label.
::labelGroup()The labels of these codes are under "payment_means" in resources/lang/{locale}/codes.php (see label()).

isValidCode()#

public static function isValidCode(string $code): bool

static

Whether a raw code value is valid according to the official code list.

ParameterTypeDescription
$codestring
Returns
bool

label()#

public function label(?string $locale = null): string

Translated label of the code in $locale (null: the translator's locale), e.g. "Stunde" for HUR; the code itself when neither $locale nor English has a label.

ParameterTypeDescription
$locale?string = null
Returns
string

labelGroup()#

public static function labelGroup(): string

static

The labels of these codes are under "payment_means" in resources/lang/{locale}/codes.php (see label()).

Returns
string

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