Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akshay-ap/payfiat

Pay for :squid: Ocean Protocol’s :ocean: data assets in fiat currency :dollar: :euro:
https://github.com/akshay-ap/payfiat

cryptocurrency cryptopayments nodejs oceanprotocol paymentprocessing payments react

Last synced: 3 months ago
JSON representation

Pay for :squid: Ocean Protocol’s :ocean: data assets in fiat currency :dollar: :euro:

Awesome Lists containing this project

README

        

# payfiat

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

[![NPM](https://img.shields.io/npm/v/payfiat.svg)](https://www.npmjs.com/package/payfiat) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Prerequisite
[PayFiat Server](https://github.com/akshay-ap/payfiat-server) is up and running.

## Install

```bash
npm install --save payfiat
```

## Usage

```jsx
import React, { Component } from 'react'

import {PayFiat} from 'payfiat'

class Example extends Component {
render () {
return (

)
}
}
```
> **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](https://github.com/akshay-ap)