🤝Aggregators
Last updated
Last updated
This module will allow the developer to use a data aggregator to connect financial institutions with ease. It will support services such as Plaid or MX.
Features:
Allow the user to connect to financial institutions.
Fetch and display accounts.
The following env vars are required:
AGGREGATOR_NAME: This variable is used to decide automatically which aggregator service will be used. It also helps in choosing the correct interfaces and parsing functions to standardize the data displayed on the components.
ENABLE_AGGREGATOR_AUTOMATIC_CONNECTION: If using a BaaS service, this flag will be used to create a synthetic account linked to the aggregator account.
AGGREGATOR_TOKEN_URL: Endpoint to receive needed token or one-time-use URL for the selected aggregator service.
AGGREGATOR_BANKING_CONNECTION: Endpoint to return the aggregator's service generated token. Some aggregators won't require this.
AGGREGATOR_BANKING_ACCOUNT: Endpoint to fetch the user's connected accounts.
UNLINK_AGGREGATOR_URL: Endpoint to unlink the aggregator's connection. If supporting multiple accounts/connections, this endpoint will delete all connections from the service.
AGGREGATOR_BANKING_ACCOUNT_CONNECTION: Endpoint to link the aggregator connection.
Import these components AggregatorScreen and AggregatorStrings in your RootNavigation. 'src/navigation/ProtectedStackNavigator'
.
Add this code block to the Stack.Navigator where you want to display the aggregator screen.
Import AggregatorsStackParams type in the types.ts
file where you want to have the stack params list type.
Import AggregatorList where you want to add the option to display the aggregator.
In your AggregatorsList component, modify the Aggregator component. It should receive a child, for example:
In your AggregatorsList component, modify the AccountsList and add your custom list.