Payment interface represents a single payment transaction within a payment information block. Each payment contains the details of a transfer to or from a specific account.
Interface Definition
Unique identifier for this payment transaction.Constraints:
- Maximum length: 35 characters
- Must be unique within the payment information block
Payment 1, 123The name of the creditor (for credit transfers) or debtor (for direct debits).Constraints:
- Maximum length: 70 characters
Money Company, TestThe IBAN of the creditor or debtor account.Validation:
- Must be a valid IBAN format
- Validated using IBANTools library (unless
checkIBANoption is set tofalse)
DE02701500000000594937The BIC (Bank Identifier Code) of the creditor or debtor’s bank.Validation:
- Must be a valid BIC format (unless
checkBICoption is set tofalse) - Validated using IBANTools library
SSKMDEMMThe mandate identifier for direct debit transactions.Only applicable for direct debits (pain.008.x formats). This is the unique identifier of the mandate signed by the debtor authorizing the creditor to collect payments.
The date when the direct debit mandate was signed.Only applicable for direct debits (pain.008.x formats). Will be formatted as YYYY-MM-DD in the output XML.
The payment amount in the specified currency.Format:
- Will be formatted to 2 decimal places in the XML output
- Must be a positive number
123, 123.83, 69The ISO 4217 currency code for the payment.Default:
EURExample: EUR, USDUnstructured remittance information sent with the payment.This is the payment reference or description that will be visible to both the debtor and creditor.Example:
WOW 1, Money please, Invoice 12345The end-to-end reference for the payment transaction.Note: Required for pain.001.001.03 and pain.001.003.03 formats. The library will throw an error if this field is missing when using these formats.Example:
lol, E2E-12345Usage in Payment Information Block
Payments are part of theCreditorPayments structure:
Examples
Basic Payment (EUR)
Payment with Custom Currency
Payment with End-to-End Reference
Payment Without BIC (Optional)
Direct Debit Payment with Mandate
Validation
The library performs the following validations on Payment fields:- ID length: Must not exceed 35 characters
- Name length: Must not exceed 70 characters
- IBAN format: Validated using IBANTools (unless disabled)
- BIC format: Validated using IBANTools (unless disabled)
- End-to-end reference: Required for specific pain formats (pain.001.001.03, pain.001.003.03)
Related Types
CreditorPayments
Payment information block structure
SepaData
Main SEPA data structure