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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@commercetools/checkout-payments-enabler-sdk

v0.0.7

Published

Checkout payments SDK for enabler

Readme

Checkout Payments – Frontend Enabler SDK

TypeScript SDK for building frontend payment enablers. The Enabler Module is a JavaScript library that runs in the browser during the commercetools checkout process. This library helps you to spin up your own enabler in no time.

Installation

# Using pnpm
pnpm add @commercetools/checkout-payments-enabler-sdk

# Using npm
npm install @commercetools/checkout-payments-enabler-sdk

# Using yarn
yarn add @commercetools/checkout-payments-enabler-sdk

Key features

  • Drop-in component types for pre-built payment UIs
  • Web component types for custom payment integrations
  • Express checkout types
  • Stored payment method types

Drop-in components vs payment components

When integrating with commercetools Checkout, you can use:

| Approach | Description | | -------- | ----------- | | Drop-in components | Pre-built, fully managed UI from the PSP's UI kit. Ideal for quick integration with minimal custom development. Supports multiple payment methods out of the box. | | Web components | Customizable integration. You choose which payment methods to support and implement. Fully customizable UI and logic; requires more development than drop-in. |

What's included

  • Drop-in typesDropinBuilder, DropinType for pre-built payment UIs
  • Web component typesWebComponentBuilder for custom payment integrations
  • Enabler interfacePaymentEnabler with createComponentBuilder, createDropinBuilder, createStoredPaymentMethodBuilder, createExpressBuilder, etc.
  • Express checkout typesPaymentExpressBuilder for express payment methods (e.g. PayPal)
  • Stored payment method typesStoredComponentBuilder, StoredPaymentMethod for saved payment methods
  • Payment method type – Re-exported from @commercetools/checkout-payments-core

Example usage

import type {
  PaymentEnabler,
  WebComponentBuilder,
  DropinBuilder,
  PaymentMethodType,
} from '@commercetools/checkout-payments-enabler-sdk';

// Type your enabler implementation
const enabler: PaymentEnabler = {
  createComponentBuilder: async (type: string) => { /* ... */ },
  createDropinBuilder: async (type) => { /* ... */ },
  createStoredPaymentMethodBuilder: async (type: string) => { /* ... */ },
  createExpressBuilder: async (type: string) => { /* ... */ },
  isStoredPaymentMethodsEnabled: async () => true,
  getStoredPaymentMethods: async (allowedMethodTypes) => ({ /* ... */ }),
};

// Use builders for payment UI
const componentBuilder: WebComponentBuilder = await enabler.createComponentBuilder('card');
const dropinBuilder: DropinBuilder = await enabler.createDropinBuilder('dropin');

For full checkout architecture and processor integration, see the root README of the checkout-sdks monorepo.

Authors

This library is created by Commercetools and the commercetools Checkout team.