Use our TypeScript SDK to interact with our API.
npm install @pandabase/node
import { Client } from "@pandabase/node"; const pb = new Client({ storeId: "store_", apiKey: "sk_v3_interactions_" }); const payments = await pb.payments.list({ page: 1, page_size: 10 }) const products = await pb.products.list({ page: 1, page_size: 10 }); const { url } = await pb.payments.createLink({ amount: 100, // in cents currency: 'USD' }) console.log(url); // logs `https://pay.pandabase.io/<payId>?token=`