Contents

convertIbanAccountFieldToPaytoread-only#

Convert user input for a bank account number into an IBAN payto URI.

Request:

The request must be a ConvertIbanAccountFieldToPaytoRequest object.

Response:

On success, the result is a ConvertIbanAccountFieldToPaytoResponse object.

Details:

Dashes and spaces are stripped from the input. For HUF, the input is treated as a Hungarian BBAN and converted to an IBAN (a developer experiment enables the same conversion for Swiss BBANs); for other currencies, the input must be a valid IBAN. When the input cannot be converted, ok is false.

interface ConvertIbanAccountFieldToPaytoRequest {
  value: string;
  currency: string;
}
type ConvertIbanAccountFieldToPaytoResponse =
  | { ok: true; type: "iban" | "bban"; paytoUri: string }
  | { ok: false };