Update a Bank account

You can update the Bank account after it was created using its UID. This will trigger a validation if data except accountHolder is modified.

$bankAccountReq = Pencepay_Request_BankAccount::build()
    ->accountHolder('Johnny Hancock')
    ->accountNumber('11111133333');

$bankAccount = Pencepay_BankAccount::update('bank_account_uid', 'customer_uid', $bankAccountReq);