An open API service indexing awesome lists of open source software.

https://github.com/jane/react-dwolla-iav

React wrapper for Dwolla IAV Widget
https://github.com/jane/react-dwolla-iav

dwolla iav react

Last synced: 4 months ago
JSON representation

React wrapper for Dwolla IAV Widget

Awesome Lists containing this project

README

          

# react-dwolla-iav

[![npm version](https://img.shields.io/npm/v/react-dwolla-iav.svg)](https://npm.im/react-dwolla-iav) [![CircleCI](https://circleci.com/gh/jane/react-dwolla-iav.svg?style=svg)](https://circleci.com/gh/jane/react-dwolla-iav)

--------

## Installation and Usage

`npm i react-dwolla-iav`

Dwolla doesn't provide a library for their `Dwolla.js` client-side scripts. This
component wraps their script and provides a React component for embedding their
IAV flow.

[`dwollaConfig` docs](https://developers.dwolla.com/resources/dwolla-js/instant-account-verification.html#dwolla-iav-start)

```javascript
import * as React from 'react'
import Dwolla from 'react-dwolla-iav'

const onSuccess = (data) => { /* do stuff with data */ }
const onError = (err) => { /* handle err */ }

const dwollaConfig = {
backButton: false,
customerToken: 'asdf',
environment: 'sandbox',
fallbackToMicroDeposits: false,
microDeposits: false,
stylesheets: [],
subscriber: () => {},
}

export default () => (




)
```

This library assumes your environment has Promises, so you might need a
polyfill for old browers.

## License

[MIT](./LICENSE.md)