Skip to content

ragnarpeterson/ember-plaid

Repository files navigation

ember-plaid

Plaid's drop-in Link module as an Ember component.

Installation

# From within your ember-cli project
ember install ember-plaid

Configuration

// config/environment.js
ENV['ember-plaid'] = {
  clientName: 'REQUIRED',
  product: 'auth',
  key: 'test_key',
  env: 'tartan'
};

Check the Link Docs for all of the parameter options.

Usage

{{plaid-link action='processPlaidToken'}}

{{!-- Or --}}

{{#plaid-link action='processPlaidToken'}}Verify Bank Account{{/plaid-link}}

Once a user has successfully onboarded via Plaid Link, the provided action will be called with the public_token passed as the sole argument. 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 plaid-link component in "update mode". Update mode allows the user to update Plaid when they change their online-banking credentials or MFA.

{{plaid-link 
  action='processPlaidToken' 
  token=$public_token}}

{{!-- Or --}}

{{#plaid-link 
  action='processPlaidToken' 
  token=$public_token}}Verify Bank Account{{/plaid-link}}

About

Plaid Link for your Ember app

Resources

License

Stars

Watchers

Forks

Packages

No packages published