Configure online banking


If you intend to use the Online Banking Service, you must configure the following settings in your application:

  • whether your application should use a test or a production environment for online banking
  • whether your application should use implicit or custom online banking settings.

Configure the environment

By default, the online banking environment of a new application is not defined, which means that the application uses the production environment.

To configure your application to make calls to the test online banking environment instead of production:

  1. Sign in to the SBS Console.

  2. In the left-hand side navigation menu, click Applications.

  3. Click the application for which you would like to configure the online banking environment.

  4. Click the Online Banking tab.

  5. Click Use Test Environment to switch to the test environment.

    ‘Set Online Banking environment’

  6. In the confirmation dialog box that pops up, type TEST and click Agree to confirm.

GraphQL

To change the online banking environment from GraphQL:

  • Run the updateApp mutation of the Account API and set your application’s onlineBankingUseTestEnvironment attribute to true.

The example GraphQL query below sets the online banking environment to test. Make sure to replace YOUR_APPLICATION_ID below with your actual application ID.

mutation updateApp($id:ID!,$input:UpdateAppInput!) {
        updateApp(id:$id, input:$input) {
          id
          name
          onlineBankingUseTestEnvironment
        }
      }
{
    "id": "YOUR_APPLICATION_ID",
    "input": {
        "onlineBankingUseTestEnvironment": true
    }
}

When your application is ready for production, run the same mutation as above, while setting the onlineBankingUseTestEnvironment attribute to false.

Configure the online banking settings

By default, the online banking settings of an application are not defined. Before making any online banking calls, you must decide whether your application should use implicit or custom defined settings.

Currently, the only custom setting you can define is the OAuth 2.0 callback URL. When implicit settings are enabled, your application’s OAuth 2.0 callback URL is as provided by the API and cannot be changed. Your application’s users will be redirected to this URL after completing the OAuth 2.0 authorization process.

To configure your application to use pre-configured (implicit) online banking settings:

  1. Sign in to the SBS Console.

  2. In the left-hand side navigation menu, click Applications.

  3. Click the application for which you would like to configure the online banking settings.

  4. Click the Online Banking tab.

  5. Click Use Implicit Settings to enable this setting.

    ‘Set online banking environment’

To configure your application to use a custom callback URL for online banking:

  1. Make sure that the Use Implicit Settings setting is disabled (greyed out).

  2. Click Edit. A dialog box appears.

  3. Enter your custom callback URL in the dialog box and click Save.

    ‘Set custom online banking callback URL’

GraphQL

To enable the online banking implicit settings from GraphQL:

  • Run the updateApp mutation of the Account API and set your application’s onlineBankingUseImplicitSettings attribute to true, for example:
mutation updateApp($id:ID!,$input:UpdateAppInput!) {
    updateApp(id:$id, input:$input) {
        id
        name
        onlineBankingUseImplicitSettings
    }
}
{
    "id": "YOUR_APPLICATION_ID",
    "input": {
        "onlineBankingUseImplicitSettings": true
    }
}

To use a custom OAuth 2.0 callback URL for your application’s online banking, disable the implicit settings, and define a custom URL, as shown in the example below:

mutation updateApp($id:ID!,$input:UpdateAppInput!) {
    updateApp(id:$id, input:$input) {
        id
        name
        onlineBankingUseImplicitSettings
        onlineBankingSettings { oauthCallback }
    }
}
{
    "id": "YOUR_APPLICATION_ID",
    "input": {
        "onlineBankingUseImplicitSettings": false,
        "onlineBankingSettings": {
            "oauthCallback": "https://example.org"
        }
    }
}