DebtorAccountReference
Reference to a debtor account for the collect-payment service.
The collect-payment service accepts either a plain AccountReference or an EncryptedIbanReference ciphertext your backend produced with its API secret following the Opaque Data protocol so the frontend never sees the underlying IBAN.
Pass an AccountReference returned by the accounts service straight through:
val account: AccountReference = result.data.first().toAccountReference()
client.collectPayment(ticket, credentials, account = account)Content copied to clipboard
For an encrypted handoff use EncryptedIbanReference:
client.collectPayment(
ticket,
credentials,
account = EncryptedIbanReference(base64FromBackend),
)Content copied to clipboard