open-index/open-npm huggingface dataset:
npm package: @stackup-fi/sdk
Description: Official TypeScript SDK for Stackup Pay.
Latest version: 1.0.15

# @stackup-fi/sdk

Official TypeScript SDK for Stackup Pay.

## Installation

```bash
npm install @stackup-fi/sdk
```

## Usage

```typescript
import { createStackup } from "@stackup-fi/sdk";

const { client } = createStackup({
  accessToken: process.env.STACKUP_SECRET_KEY,
});

// Create a product
const product = await client.product.create({
  payoutWalletAddress: "0xd4E5aA212d7b9CD781E0708B5A3764c949E4Ce95",
  chain: "8453",
  currency: "USDC",
  amount: 29.99,
});

// Create a checkout session
const checkout = await client.checkout.session.create({
  items: [{ product: product.data.id }],
});

console.log(checkout.data.url);
```

## API Reference

See [stackup.finance/docs](https://stackup.finance/docs) for full documentation.