# Express Adapter[](#express-adapter)

> For the complete machine-readable documentation index, see [llms.txt](https://apidocs.chargebee.com/llms.txt).


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

## Prerequisites[](#prerequisites)

-   Express 5 or later

## Installation[](#installation)

**npm**

```bash
npm install @chargebee/express
```

**pnpm**

```bash
pnpm add @chargebee/express
```

**yarn**

```bash
yarn add @chargebee/express
```

## Features[](#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[](#setup)

### 1\. Configure Routes[](#1-configure-routes)

### 2\. One-Time Checkout[](#2-one-time-checkout)

### 3\. Manage Payment Sources[](#3-manage-payment-sources)

## Links[](#links)

-   [GitHub Repository](https://github.com/chargebee/js-framework-adapters)
-   [Node.js SDK](/docs/sdks/nodejs)
-   [API Reference](/docs/api/getting-started)