@palmabit/etn-vendor-payment
A web component to generate Payment String as QR for Electroneum (ETN) instant payment API
Last updated 2 years ago by francesco .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @palmabit/etn-vendor-payment 
SYNC missed versions from official npm registry.

etn-vendor-payment

<etn-vendor-payment> is a web component for generating Electroneum payment string and display it as QR code for the customer to scan using the Electroneum app on their mobile device.

Features:

  • Dependency-free
  • HTML Custom element with shadow DOM

Installation

npm install

Usage

import the module

<script type="module">
import './node_modules/etn-vendor-payment/index.js';
</script>

Put the <etn-vendor-payment></etn-vendor-payment> component in your markup wherever you want it to appear.

Exmplate:

<etn-vendor-payment outledId="5ba657721ca5b" paymentId="7ce25b4dc0" amount="100"></etn-vendor-payment>

The payment string is made up of the following parameters:

{outletId}/{paymentIdd}/{amount}

For more info see the ETN instant payment API docs: etn api guide

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

License

MIT. See LICENCE

Current Tags

  • 0.0.3                                ...           latest (2 years ago)

3 Versions

  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |