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
- Host: GitHub
- URL: https://github.com/jane/react-dwolla-iav
- Owner: jane
- License: mit
- Created: 2018-09-25T16:52:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:35:37.000Z (over 3 years ago)
- Last Synced: 2024-05-02T07:34:12.522Z (about 2 years ago)
- Topics: dwolla, iav, react
- Language: TypeScript
- Homepage: http://npm.im/react-dwolla-iav
- Size: 1.39 MB
- Stars: 7
- Watchers: 21
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# react-dwolla-iav
[](https://npm.im/react-dwolla-iav) [](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)