1.1.1 • Published 4 years ago

react-hyperwallet-dropin v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

react-hyperwallet-dropin

React component to integrate Hyperwallet Drop-In UI (Unofficial)

NPM JavaScript Style Guide

Install

npm install --save react-hyperwallet-dropin

Usage

import React, { Component } from 'react'

import HyperwalletTranferMethodDropIn from 'react-hyperwallet-dropin'

class Example extends Component {
  render () {
    return (
      <HyperwalletTranferMethodDropIn
        userToken='unique user identifier prefixed with usr-. generated when creating a user'
        environment='sandbox'
        getAuthenticationToken = {(callback)=>{callback('auth-token')}} //token should be renewed every 10 mins
        onComplete = {(trmObject, completionResult)=>{
          //logic to be executed on completion of setting up transfer method.
        }}
        onError = {() => {
          // handle error
        }}
        template = 'bootstrap3'//Specifies the UI template. Allowed values are:[bootstrap3|plain]
      />
    )
  }
}

License

MIT © lahiru94

react-hyperwallet-dropin

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago