- Full page redirect.
- Modal, as a full page overlay.
- Inline, as a component of a page.
npm install @bambora/checkout-sdk-webCDN: Minified and gzipped size is ~5.5 KB. The NPM package supports ESM. Browser support: All major browsers above version
N - 1, where
Nis the most recent version. For Internet Explorer, only version 11 is supported. We don't test other browsers, but bug reports and pull requests for bugs related to older versions or uncommon browsers are always welcome.
BuildRequirements are Node and NPM. Clone the project, navigate to the project root, and run
npm run buildin your terminal. This will install all dependencies and output all assets to the
dist-folder. It is also possible to set up a watcher for source files for changes by running
npm start. Alternatively, run Docker containers as specified in the
Makefilein the repository root.
npm testin your terminal in the project root. You can also run the watcher via
npm run test:watch. It watches all source and test files for changes. Run
npm run lintfor linting.
ContributingCreate a pull request or an issue. Be sensible and respectful. Thanks.
Main Developer Dependencies| Purpose | Dependencies | | ------------ | ------------------------------------ | | Language | TypeScript | | Bundling | Rollup | | Testing | Karma, Mocha, Chai, Sinon, Puppeteer | | Code quality | TSLint, Prettier | Additionally, a pre-commit hook has been set up with the following steps:
- Run Prettier on all staged files.
- Run TSLint with autofixer on all staged files.
- Add files to git.
- Run all tests.
git commit --no-verifyto override.
Continuous Integration and DeliveryCI/CD is done by Jenkins by reading the Jenkinsfile. The pipeline goes through 5 steps:
- Publish to Bambora CDN (files are uploaded to S3).
- Invalidate Bambora CDN Cache (the cache on CloudFront is invalidated).
- Publish to public NPM.
npm versionto bump the version and create a tagged commit as it ensures consistency.