Validating sub branch BICs

By default, BWICheck will only validate the BIC against the data for the main branch. To validate the BIC against a sub-branch, as long as the country you are using supports sub branches, you must:

  1. Iterate to the required sub-branch.
  2. Run the hook BWG_HOOK_BIC_CHECK by calling BWIHook with the item BWG_HOOK_BIC_CHECK.
  3. For example:

    ...

    BWISetValue(h,BWG_G_CHECK_BIC,1)

    BWICheck(h)

    if(BWINext(h,BWI_N_BRANCH)) {

    BWIHook(h,BWG_HOOK_BIC_CHECK)

    /* Deal with the conditions returned */

    }