npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@comgate/checkout-js

v2.0.15

Published

Loading wrapper for Comgate Checkout library.

Readme

@comgate/checkout-js

NPM version npm downloads

@comgate/checkout-js is the official JavaScript loader for Comgate Checkout.
It provides a secure, promise-based API for loading and working with the Comgate Checkout SDK directly in your web application.

  • ✅ Asynchronous loading with built-in error handling
  • ✅ Full TypeScript typings out of the box
  • ✅ Preload and cache SDK scripts before use
  • ✅ Compatible with all modern bundlers and frameworks

The legacy package @comgate/checkout is deprecated. All functionality is now included in @comgate/checkout-js.

Table of Contents

Overview

@comgate/checkout-js allows developers to seamlessly integrate Comgate Checkout into web applications without manually handling <script> tags.
The library ensures a smooth developer experience with:

  • Automatic script management – load only what is needed.
  • TypeScript support – full type definitions included.
  • Framework compatibility – works with React, Vue, Angular, Svelte, or plain JavaScript.
  • Error resilience – built-in timeouts and error handling.

Installation

Install the package using your preferred package manager:

npm install @comgate/checkout-js
# or
yarn add @comgate/checkout-js

Quick Start

1. Install the package

npm install @comgate/checkout-js

2. Load the Comgate Checkout SDK

Use the provided loader function. The loader handles script injection, caching, and error management.

3. Create a Checkout instance

Provide your checkoutId and transactionId to initialise the Checkout instance.

4. Create Apple Pay and Google Pay instances

Optionally initialise additional modules such as Apple Pay or Google Pay using the same SDK.

👉 Detailed integration guides and code examples are available in the official documentation:
Comgate Checkout SDK – Examples

Difference between @comgate/checkout-js and @comgate/checkout

The package @comgate/checkout-js is the recommended way to integrate Comgate Checkout.
It replaces the older @comgate/checkout package and provides:

  • Loader functionality – handles script injection, caching, and error management.
  • TypeScript support – all types are bundled directly in the package.
  • Promise-based API – cleaner asynchronous flow.
  • Future maintenance – only this package is actively maintained.

⚠️ The package @comgate/checkout is deprecated.
All its functionality has been migrated to @comgate/checkout-js.

Why use @comgate/checkout-js?

When integrating Comgate Checkout you could insert a <script> tag manually, wait for it to load, handle errors, and then work with the global SDK.
@comgate/checkout-js simplifies this process and adds several benefits:

  • Automatic script management – no need to handle <script> tags yourself.
  • Promise-based API – consistent and modern async handling.
  • Preloading support – load SDK into cache before it is needed.
  • Error handling & timeouts – built-in safeguards against failed or slow loads.
  • TypeScript support – strong typing for better developer experience.
  • Framework agnostic – works with React, Vue, Angular, Svelte, or vanilla JavaScript.
  • Actively maintained – this is the officially supported loader package.

API Reference

Full API reference, including detailed options and return types, is available in our official documentation:

👉 Comgate Checkout SDK – API Reference

Please refer to the link above for the latest and complete specification.

Examples

Practical integration examples (NPM, CDN with <script> tag) are available in our official documentation:

👉 Comgate Checkout SDK – Examples

Resources

License

Copyright © 2024–present Comgate a. s.
Released under the EULA.