Create a Bank account
To create a bank account, specify the basic account properties.
BankAccountRequest accountReq = new BankAccountRequest()
.accountHolder("John Hancock")
.accountNumber("1111-2222")
.iban("GB0000000000000")
.bic("BICCODE")
.countryIsoCode2("GB");
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.