1.0.1 • Published 28 days ago

hexopay-cashier v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
28 days ago

hexopay-cashier

NPM package for easy integration to Hexopay Cashier

Usage:

npm install hexopay-cashier
import { HexopayCashier } from 'hexopay-cashier'

const hexopayCashier        = new HexopayCashier('<Hexopay Cashier host>')
const transactionDataHash   = { transactionDataToken: '<token from /checkout response>' }
const hexopayCashierElement = document.getElementById('<parent element for hosted card fields>')

hexopayCashier.initialize(hexopayCashierElement, transactionDataHash)
const transactionDataToken = transactionDataHash['transactionDataToken']

Development

Setup:

npm install

Test:

npm test

E2E Tests:

E2E tests are run against staging. Sometimes they might fail cause staging is slow to response.

Please treat them as a way to check your new implementation or bug fix. I do suggest to run playwright with --ui flag to see what has failed. (Mostly it fails waiting for a validation error to appear and it does not due to slow response).

Setting up the tests

npx playwright install

Running the tests

npx playwright test

You can specify specific flags while running playwright:

  • project flag let's you specify which browser to use
--project=chromium
  • ui flag runs the tests with ui interface, so you can see each line executed and state of the app
--ui
  • debug flag runs the tests in debug mode
--debug

Publish:

Currently it's published manually from local repo

To do:

Add automated publish job for github repo

1.0.1

28 days ago

1.0.0

1 month ago

0.9.1

6 months ago

0.8.9

8 months ago

0.8.8

8 months ago

0.8.7

8 months ago

0.8.6

8 months ago

0.9.0

7 months ago

0.8.5

9 months ago

0.6.2-beta1

11 months ago

0.6.2-beta2

11 months ago

0.6.2-beta3

11 months ago

0.6.2-beta4

11 months ago

0.6.2-beta5

11 months ago

0.8.4

9 months ago

0.7.0-beta2

11 months ago

0.8.2-beta1

10 months ago

0.7.0-beta1

11 months ago

0.6.1-beta2

11 months ago

0.8.1

10 months ago

0.8.0

10 months ago

0.6.2

11 months ago

0.6.1-beta1

11 months ago

0.8.3

10 months ago

0.8.2

10 months ago

0.8.1-beta1

10 months ago

0.7.0

11 months ago

0.6.1

12 months ago

0.8.1-beta2

10 months ago

0.6.0

12 months ago

0.4.5

1 year ago

0.4.4

1 year ago

0.4.6

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.2

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago