Skip to content

acknudson/ember-plaid-v2

Repository files navigation

ember-plaid-v2

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

Installation

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

Configuration

// 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.

Usage

{{plaid-link onSuccess=(action "onSuccess")}}

Or

{{#plaid-link onSuccess=(action "onSuccess")}}
  Click to Link Your Bank Account
{{/plaid-link}}

The Link component can accept the following closure actions that it will call after the corresponding event:

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.

{{plaid-link
  onSuccess=(action "onSuccess")
  token=$public_token}}

Or

{{#plaid-link onSuccess=(action "onSuccess") token=$public_token}}
  Update Bank Account
{{/plaid-link}}

Contributing

Installation

  • git clone <repository-url> this repository
  • cd ember-plaid-v2
  • yarn install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

Credits

Code based on original Ember Plaid component written by Jason Kriss: https://github.com/ragnarpeterson/ember-plaid

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published