vxpay-js

Wrapper package for VXPay API.

View on GitHub

Visit-X payment SDK

Build Status Coverage Status

NPM

VXPay-js is an SDK for integrating the Visit-X payment/funnel for 3rd party code.

Demo

More information on the vxpay-js:

  1. Public API description
  2. Hooks definitions & explanation
  3. Frame messages reference
  4. Samples
  5. Post message reference

Please see vxpay-js-react-example for React integration example.

Communication flows

Things to note:

IsLoggedInAction

Possible deviations:

Development

You can use the following scripts to help you on daily run:

Command Explanation
npm run vxpay-prepare Prepare the npm package valid for local installs (normal npm tgz)
npm run vxpayclear Remove the files used in package preparation
npm run vxpay-charts Build svg charts based on text described flows (mermaid-js)
npm run build Prepare the production version of the lib
npm run lint Check eslint results
npm run cover Run tests and write coverage files. Can be observed in build/coverage/index.html