1.0.1 • Published 5 years ago

react-fedapay v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-fedapay

NPM JavaScript Style Guide

Install

npm install --save react-fedapay

Usage

import React, { Component } from 'react'

import FedaPayButton from 'react-fedapay'

class FedaPayButton extends Component {
  callback = (transactionId, transactionStatus) => {
    console.log(transactionId, transactionStatus);
  }

  render () {
    return (
      <FedaPayButton
        callback="{this.callback}"
        publicKey='pk_sandbox_xMYHN9GrxZigland1kOw9bi4'
        buttonText='Support @nioperas06'
        transactionAmount='1000'
        transactionDescription='Support @nioperas06'
        currencyIso='XOF'
        widgetDescription='Support @nioperas06'
        widgetImage='https://sandbox-checkout.fedapay.com/img/marketplace.svg'
        widgetTitle='Support @nioperas06' />
    )
  }
}

License

MIT © nioperas06

1.0.1

5 years ago

1.0.0

5 years ago