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
npm install @palmabit/etn-vendor-payment
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.
Example:
<etn-vendor-payment outledId="5ba657721ca5b" paymentId="7ce25b4dc0" amount="100"></etn-vendor-payment>
Demo: https://codepen.io/ffrancesco/pen/yRaEam
The payment string is made up of the following parameters:
{outletId}/{paymentId}/{amount}
For more info see the ETN instant payment API docs: etn api guide
- 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
- Palmabit - Sponsor
MIT. See LICENSE