Install
Pick a language. Keep the test key in an environment variable.
TypeScript
@codespar/sdk
Typed client for Node. Sessions, send, execute, charge, paymentStatus, mandate decode and verify.
Python
codespar
The Python client: create, send, execute, charge, payment_status. See the Python docs for what is covered.
CLI
@codespar/cli
Keys, mandates and records from the terminal. Scripts and CI.
Sandbox run · demo data
The surface
What the SDK does today.
Checked against @codespar/sdk 0.16.11.
Mandate first
The SDK never asks for a card. It asks for a mandate.
Your backend holds a key. The agent holds nothing. Every call runs under a signed spend authority: cap, scope, expiry. Requests matching your approval rules wait for review; requests outside hard limits are blocked.
Sandbox run · demo data