Plaid's drop-in Link module as an Ember component.
# From within your ember-cli project
ember install ember-plaid-v2
// config/environment.js
ENV['ember-plaid-v2'] = {
clientName: 'REQUIRED',
product: 'auth',
key: 'test_key',
env: 'tartan'
};
Check the Link Docs for all of the parameter options.
Or
The Link component can accept the following closure actions that it will call after the corresponding event:
- onSuccess
- onOpen
- onLoad
- onExit
- [onError] (not supported by plaid, custom-built logic will fire this if plaid script fails to load.)
Once a user has successfully onboarded via Plaid Link, the onSuccess
action will be called with the public_token
and a metadata
object passed as the arguments. From there, you should follow the instructions for exchanging the public_token
for an access_token
.
Once you have the public_token
, you can use it to initialize a plaid-link component in "update mode". Update mode allows the user to update Plaid when they change their online-banking credentials or MFA.
Or
git clone <repository-url>
this repositorycd ember-plaid-v2
yarn install
ember serve
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
Code based on original Ember Plaid component written by Jason Kriss: https://github.com/ragnarpeterson/ember-plaid