Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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:
- Host: GitHub
- URL: https://github.com/akshay-ap/payfiat
- Owner: akshay-ap
- Created: 2020-01-05T20:17:04.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T16:37:02.000Z (over 1 year ago)
- Last Synced: 2024-10-10T07:47:23.513Z (3 months ago)
- Topics: cryptocurrency, cryptopayments, nodejs, oceanprotocol, paymentprocessing, payments, react
- Language: CSS
- Homepage:
- Size: 2.41 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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)