collectPayment

fun collectPayment(amount: Amount, creditorAccount: AccountIdentifier, creditorName: String, remittance: String, instant: Boolean? = null, fields: List<CollectPaymentField>? = null, ticketId: Uuid = Uuid.random(), ttl: Duration? = null): Ticket.CollectPayment

Issue a ticket for the collect-payment service.

Parameters

instant

Force instant (true) or non-instant (false). Leave null (the default) to request an instant payment when supported and fall back to non-instant otherwise; forcing true causes the service to return an UnsupportedProduct error when the bank cannot offer an instant payment.

fields

Debtor-side fields to populate on the result, e.g. the debtor IBAN or name. Omitting the parameter (or passing null) returns no debtor data.