> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crxbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

> Install and set up the library in your extension project.

## Install

<CodeGroup>
  ```bash npm theme={null}
  npm install @crxbase/payments
  ```

  ```bash pnpm theme={null}
  pnpm install @crxbase/payments
  ```

  ```bash yarn theme={null}
  yarn install @crxbase/payments
  ```
</CodeGroup>

## Usage

```javascript theme={null}
import { Client } from "@crxbase/payments";

const client = new Client("your_project_id");
```

Works in Background Script, Service Worker, Content Script, and extension popups. Compatible with any extension framework (WXT, Plasmo, vanilla Manifest V3, etc.).

<Card title="Integration examples" icon="grid" href="https://github.com/crxbase/examples">
  See example extensions using the library
</Card>
