Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 814 Bytes

README.md

File metadata and controls

41 lines (31 loc) · 814 Bytes

🛒 Checkout

Docs

import { LemonsqueezyClient } from "lemonsqueezy.ts";

const client = new LemonsqueezyClient("YOUR_API_KEY");

const newCheckout = await client.createCheckout({
  // ...
});

const checkout = await client.retrieveCheckout({
  id: "...",
});

const checkouts = await client.listAllCheckouts();
import {
  createCheckout,
  retrieveCheckout,
  listAllCheckouts,
} from "lemonsqueezy.ts/checkout";

const newCheckout = await createCheckout({
  apiKey: "YOUR_API_KEY",
  // ...
});

const checkout = await retrieveCheckout({
  apiKey: "YOUR_API_KEY",
  id: "...",
});

const checkouts = await listAllCheckouts({
  apiKey: "YOUR_API_KEY",
});