Documentation Index
Fetch the complete documentation index at: https://docs.pandabase.io/llms.txt
Use this file to discover all available pages before exploring further.
The TypeScript library provides convenient access to the Pandabase API from applications written in server-side TypeScript/JavaScript.
Installation
Install the package with:
npm install @pandabase/node
Usage
The package needs to be configured with your api key, which is available in the api keys tab.
import { Pandabase } from "@pandabase/node";
const pandabase = new Pandabase({
storeId: "shp_",
apiKey: "sk_...",
});
await pandabase.checkouts.create({
items: [
{
name: "Product A",
quantity: 1,
amount: 1000, // $10.00 USD
},
], // https://docs.pandabase.io/api-reference/checkouts/create-checkout-session#body-items
customer: {
email: "joe@gmail.com",
},
});
await store.checkouts.estimate({}); // same API as above just returns a preview