Accessing SWIFT and SEPA data

For each branch, there may also be additional SWIFT and SEPA specific data available. To access this cross border data you must have the correct licence and call the hook BWG_HOOK_SWIFT_ON after validating the account details.

For example:

/* Create the handle and perform all validation pre-requisites */

/* Set the input flag to check the BIC */

BWISetValue(h,BWG_G_CHECK_BIC,1)

/* Perform the validation */

BWICheck(h)

/* Call the hook to switch to SWIFT data */

BWIHook(BWG_HOOK_SWIFT_ON)

/* Iterate through each SWIFT data field */

for(i = BWG_D_SD_BIC BWI_V_FIELD; i <= BWG_D_SD_ROUTING_BIC; i = i + 1) {

BWIGetString(h,i,string)

print(i + " " + string)

}

/* Call the hook to switch back to standard data */

/* Free the handle and perform any post validation logic */

The command line example programs include an example of how you can use this.