Create a Bank account

To create a bank account, specify the basic account properties.

BankAccountRequest accountReq = new BankAccountRequest()
    .accountHolder("John Hancock")

BankAccount account = gateway.bankAccount().create("customer_uid", accountReq);

Notice that countryCode is required, although it seems redundant (it can be determined from IBAN). The reason for requiring this property is so that we can do a proper validation on the full set of bank account details you provide, as per the rules for the given country.