@xpayr/node-sdk
Typed TypeScript & Node.js client for creating multi-chain payment sessions, polling status, verifying HMAC-SHA256 webhooks, and managing AI agent spend policies.
Ship non-custodial multi-chain crypto checkout, offline ES256 software licensing, Merkle audit receipts, and 21-tool AI agent workflows with audited open-source packages maintained at github.com/xpayrcom.
Typed TypeScript & Node.js client for creating multi-chain payment sessions, polling status, verifying HMAC-SHA256 webhooks, and managing AI agent spend policies.
Zero-dependency PSR-compliant PHP SDK for Laravel, Symfony, WHMCS, and custom PHP backends with timing-safe webhook verification.
Official 21-tool Model Context Protocol server (io.github.xpayrcom/xpayr-mcp-server) for Claude Desktop, Cursor, VS Code Copilot, Windsurf, and Cline.
Verify wallet-bound ES256 software, SaaS, CLI, and browser-extension JWT licenses offline against https://xpayr.com/.well-known/jwks.json.
Deterministic on-chain settlement envelope builder & verifier for external tax audits, dispute proof, and QuickBooks/Xero/NetSuite sub-ledgers.
Complete 20-endpoint REST API v1 Postman collection, environment variables, pre-request HMAC scripts, and interactive OpenAPI 3.1.0 specs.
import { XPayrClient } from '@xpayr/node-sdk';
const xpayr = new XPayrClient({ apiKey: process.env.XPAYR_SECRET_KEY! });
const session = await xpayr.payments.create({
amount: 49.90,
currency: 'USDC',
network: 'base-mainnet',
metadata: { order_id: 'ORD-9001', plan: 'pro_annual' },
success_url: 'https://app.example.com/billing/success',
ipn_callback_url: 'https://app.example.com/webhooks/xpayr',
});
console.log('Checkout URL:', session.checkout_url);
Yes. All official TypeScript/JavaScript packages are published under the @xpayr scope on NPM, the PHP SDK is published as xpayr/xpayr-php on Packagist, the Docker container is published at ghcr.io/xpayrcom/xpayr-mcp-server:latest, and full source code lives across 30 public repositories at https://github.com/xpayrcom.
Yes. XPayr API v1 is a clean JSON REST interface authenticated with a standard Bearer sk_test_... / sk_live_... header, and you can generate typed clients in any language directly from https://xpayr.com/.well-known/openapi.json.
Yes. Pass your sk_test_... key to test session creation, Dual Checkout flows, and HMAC-SHA256 webhook verification across TRON Nile, Solana Devnet, Base Sepolia, Polygon Amoy, and Circle Arc Testnet.