1.0.1 • Published 5 years ago
react-fedapay v1.0.1
react-fedapay
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