@palmabit/etn-vendor-payment

0.0.3 • Public • Published

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 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

Dependents (0)

Package Sidebar

Install

npm i @palmabit/etn-vendor-payment

Weekly Downloads

4

Version

0.0.3

License

MIT

Unpacked Size

5.59 kB

Total Files

4

Last publish

Collaborators

  • palmabit-dev
  • a.sarzina
  • francesco
  • drubetti