JavaScript

Library and reference POS for JavaScript.

Library

npm

The easiest way to import the library into your project is using the npm repository. The package is called @mx51/spi-client-js.

You can install the package by executing the following:

npm i @mx51/spi-client-js

Once installed, you can import it as any other npm package node_modules/@mx51/spi-client-js/dist/spi-client-js.js.

Reference POS

Reference implementation is available in spi-samples-js.

Hosted demo

We maintain a hosted instance of the reference POS on https://spi-samples.herokuapp.com/. This comes from the open-source same codebase.