Get up and running with Payman in 5 minutes
Test Rails
npm install @paymanai/payman-ts
PAYMAN_CLIENT_ID=your-client-id PAYMAN_CLIENT_SECRET=your-client-secret
import { PaymanClient } from "@paymanai/payman-ts"; import "dotenv/config"; const payman = PaymanClient.withCredentials({ clientId: process.env.PAYMAN_CLIENT_ID!, clientSecret: process.env.PAYMAN_CLIENT_SECRET!, }); async function runDemo() { try { const wallets = await payman.ask("List all wallets and their balances"); console.log("π° Wallets:", wallets); const payee = await payman.ask("Create a payee of type Test Rails named John Doe"); console.log("π€ Payee Created:", payee); const payees = await payman.ask("List all payees"); console.log("π All Payees:", payees); const payment = await payman.ask("Send 10 TSD to John Doe"); console.log("β Payment Sent:", payment); } catch (err: any) { console.error("β Error:", err.message); } } runDemo();
node index.ts
β Ready for production? Just switch from TSD wallets to USD/USDC, and use your Live Credentials!