Skip to content

akshay-ap/payfiat

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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