Introducing OpenTelemetry for Chargebee SDKs — trace every API call in any telemetry tool.
Chargebeechargebee API

Express Adapter

The Chargebee Express adapter provides route handlers for integrating Chargebee Hosted Pages (checkout, payment methods, and customer portal) into Express applications.

Prerequisites

  • Express 5 or later

Installation

Features

The adapter provides four route handler factories:

  • createSubscriptionCheckout — Redirects to a Chargebee subscription checkout page
  • createOneTimeCheckout — Redirects to a one-time charge checkout page
  • managePaymentSources — Redirects to the payment method management page
  • createPortalSession — Redirects to the Chargebee self-service portal

Each factory takes your credentials and returns an Express RequestHandler middleware.

Setup

1. Configure Routes

2. One-Time Checkout

3. Manage Payment Sources