Skip to content

Pay for 🦑 Ocean Protocol’s 🌊 data assets in fiat currency 💵 💶

Notifications You must be signed in to change notification settings

akshay-ap/payfiat

Repository files navigation

payfiat

React component to allow users to pay for Ocean Protocol assets in fiat currency

NPM JavaScript Style Guide

Prerequisite

PayFiat Server is up and running.

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