Integration (SDK)

Transfers Connect integration flow

Include the Transfers JS SDK to your project like this:

<script src="https://checkout.transfers.africa/lib/lib.bundle.js"></script>

Trigger the Connect modal with:

const result = await Transfers.connect({
    userId: "<a unique identifier for your user>"
})

The data object returned from the connect process:

{
  "data": {
    "connectUserBank": {
      "id": "test_userid",
      "username": "12345678900",
      "slug": "zenith",
      "bankLoginConnection": [
        {
          "accountNumber": "12345678900",
          "balance": "17775.85"
        }
      ]
    }
  }
}

Once a user's bank accounts are linked, they show up on the Connect modal with option to set a default account or add more bank accounts:

Last updated