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

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Commerce Kit

> Commerce primitives for building Solana payment experiences

<Warning>
  **Commerce Kit is no longer maintained**

  Commerce Kit packages no longer receive updates or fixes. For new payment
  integrations, use [Solana Pay](/developers/docs/tools/solana-pay).
</Warning>

**Commerce Kit is a collection of tools for building commerce experiences on
Solana.** From drop-in payment buttons to headless primitives, Commerce Kit
provides everything you need to accept crypto payments.

## Why Commerce Kit?

- **Drop-in Components**: Pre-built PaymentButton with wallet connection, token
  selection, and transaction handling
- **Framework Agnostic**: Use headless primitives in any JavaScript framework
- **Solana Pay**: Full Solana Pay support with QR code generation
- **Type-Safe**: Complete TypeScript support across all packages
- **Wallet Standard**: Compatible with all Wallet Standard wallets (Phantom,
  Solflare, Backpack, etc.)

## Quick Start

The fastest way to get started is with the `PaymentButton` component:

```tsx
import { PaymentButton } from "@solana-commerce/kit";

function App() {
  return (
    <PaymentButton
      config={{
        merchant: {
          name: "My Store",
          wallet: "your-solana-wallet-address"
        },
        mode: "buyNow"
      }}
      paymentConfig={{
        products: [{ id: "1", name: "Product", price: 10, quantity: 1 }]
      }}
      onPaymentSuccess={(signature) => {
        console.log("Payment successful:", signature);
      }}
    />
  );
}
```

Replace `your-solana-wallet-address` with a valid Solana address. The `buyNow`
and `cart` modes need `paymentConfig.products`; without it the button renders an
"Invalid Pricing" error card.

<Warning>
  `onPaymentSuccess` runs in the browser, so it is not proof of payment: anything
  in the browser can be faked. Send the signature to your server and check the
  payment there before you ship an order. See
  [Confirm payments from your backend](/developers/docs/payments/checkout/backend).
</Warning>

**[→ PaymentButton Quick Start](/developers/docs/tools/commerce-kit/quickstart/payment-button)** -
Learn more about the PaymentButton

**[→ Quick Start Guides](/developers/docs/tools/commerce-kit/quickstart/installation)** -
Get up and running

## Installation

Choose the Commerce Kit packages you need:

```bash
# Unified Commerce Meta Package
npm install @solana-commerce/kit

# Drop-in payment button (most common)
npm install @solana-commerce/react

# Wallet connection only
npm install @solana-commerce/connector

# Headless commerce primitives
npm install @solana-commerce/headless

# Solana Pay QR codes
npm install @solana-commerce/solana-pay

# React hooks for custom UIs
npm install @solana-commerce/sdk
```

## Next Steps

Explore the documentation based on what you're building:

- **[Quick Start Guides](/developers/docs/tools/commerce-kit/quickstart/installation)** -
  Get up and running quickly

## Community & Support

- **Questions?** Ask on
  [Solana Stack Exchange](https://solana.stackexchange.com/) (use the
  `commerce-kit` tag)

Built by the [Solana Foundation](https://solana.org).

Licensed under MIT.
