2.14.3 • Published 2 years ago

vxpay-js v2.14.3

Weekly downloads
3
License
LicenseRef-LICENS...
Repository
github
Last release
2 years ago

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 1. Hooks definitions & explanation 1. Frame messages reference 1. Samples 1. Post message reference

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

Communication flows

Things to note:

  • All communication between the VXPayJS (lib) and VXPay happens via window.postMessage. Nevertheless, this should not be influencing the consumer application anyhow, as it is completely hidden from the end-developer.
  • Normal communication between the SPA (e.g. your code), library and VXPay should looks approximately like described on the chart below (IsLoggedInAction is just an example):

IsLoggedInAction

Possible deviations:

  • When configured to be opening in a tab, all the actions (e.g. VXPay.isLoggedIn(), VXPay.getActiveAbos(), etc.) will be routed to an iFrame to avoid opening tabs when no user interaction is happening.

Development

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

CommandExplanation
npm run vxpay-preparePrepare the npm package valid for local installs (normal npm tgz)
npm run vxpayclearRemove the files used in package preparation
npm run vxpay-chartsBuild svg charts based on text described flows (mermaid-js)
npm run buildPrepare the production version of the lib
npm run lintCheck eslint results
npm run coverRun tests and write coverage files. Can be observed in build/coverage/index.html
2.14.3

2 years ago

2.14.2

4 years ago

2.14.0

4 years ago

2.13.1

4 years ago

2.12.0

4 years ago

2.11.0

4 years ago

2.10.1

5 years ago

2.10.0

5 years ago

2.9.0

5 years ago

2.8.1

5 years ago

2.7.1

5 years ago

2.6.3

5 years ago

2.6.2

5 years ago

2.6.1

5 years ago

2.6.0

5 years ago

2.6.0-beta.1

5 years ago

2.6.0-beta.0

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.4.3

6 years ago

2.4.2

6 years ago

2.4.0

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.9

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.2

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.0

6 years ago