@palmabit/etn-vendor-payment
v0.0.3
Published
A web component to generate Payment String as QR for Electroneum (ETN) instant payment API
Downloads
10
Readme
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Credits
- Palmabit - Sponsor
License
MIT. See LICENCE