Build your own bank selection page

๐Ÿ“˜

Overview

Use the guide below to understand how to create your own bank selection page in the application. Doing so will land your user directly on the Permissions screen before redirection to the bank.

  1. Find the list of supported banks in the Providers API. The API response includes key details such as bank name, display name, logoURL etc that can be used to design your own bank selection screen.
{
  "providers": [
    {
      "providerId": "BANKA",
      "name": "BANKA",
      "displayName": "BANKA",
      "arabicDisplayName": "ุงู„ุจู†ูƒ",
      "logoUrl": "http://BANKA.com",
      "countryCode": "SAU",
      "aisStatus": "UNAVAILABLE",
      "pisStatus": "AVAILABLE"
    },
    {
      "providerId": "BANKB",
      "name": "BANKB",
      "displayName": "BANKB",
      "arabicDisplayName": "ุงู„ุจู†ูƒ",
      "logoUrl": "http://BANKB.com",
      "countryCode": "SAU",
      "aisStatus": "AVAILABLE",
      "pisStatus": "UNAVAILABLE"
    }
  ]
}
  1. Call the Create Intent API as below with the providerId in the request once the user chooses a bank to conenct to.
curl --location --request POST 'https://api.sau.sandbox.tarabutgateway.io/accountInformation/v1/intent' \
--header 'Authorization: Bearer <your_access_token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "user": {
        "customerUserId": "7982364",
        "email": "[email protected]
        "firstName": "John",
        "lastName": "Snow",
    },
  "consent":{
    "providerId": "BLUE"
  },
    "redirectUrl": "http://override.me/notDefault"
}'
  1. The Connect URL returned in the response when embedded into the customer application will open up the permissions screen