JSPM

  • Created
  • Published
  • Downloads 260258
  • Score
    100M100P100Q174587F
  • License MIT

A React component for Plaid Link

Package Exports

  • react-plaid-link

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-plaid-link) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-plaid-link

A simple React component for easy integration with the Plaid Link drop-in module

Install

npm install react-plaid-link

Example Usage

var React = require('react');
var PlaidLink = require('react-plaid-link');

var App = React.createClass({
  handleOnSuccess: function(token, metadata) {
    // send token to client server
  },
  render: function() {
    return (
      <PlaidLink
        publicKey="PLAID_PUBLIC_KEY"
        product="auth"
        env="tartan"
        clientName="plaidname"
        onSuccess={this.handleOnSuccess}
        />
    );
  }
})

All Props

Please refer to the official Plaid Link docs for a more holistic understanding of the various Link options.

<PlaidLink
  clientName="plaidname"
  env="tartan"
  institution={null}
  publicKey="test_key"
  longtail={true}
  product="auth"
  token="test,wells,connected"
  selectAccount={true}
  webhook="https://webhooks.test.com"
  onSuccess={this.handleOnSuccess}
  onExit={this.handleOnExit}
  onLoad={this.handleOnLoad}
  />

Contributing

Run tests:

make test