payfiat
v1.2.0
Published
React component to allow users to pay for Ocean Protocol assets in fiat currency
Downloads
14
Readme
payfiat
React component to allow users to pay for Ocean Protocol assets in fiat currency
Install
npm install --save payfiat
Usage
import React, { Component } from 'react'
import {PayFiat} from 'payfiat'
class Example extends Component {
render () {
return (
<PayFiat
oceanAmount={50}
currency="EUR"
receiverAccount="0xB4Ba48998CF672d43b8216D43EE8f16143c9055C"
/>
)
}
}
Note - if
receiverAccount
prop is not provided, then ethereum account address is exported from injected web3 provided like Metamask.
License
Apache 2.0 © akshay-ap