Official SDKs Β· NPM Β· Packagist Β· GHCR Β· OpenAPI 3.1

Typed SDKs & Cryptographic Toolkits for Modern Commerce.

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.

NPM Β· TypeScript / Node 18+ Β· v0.2.0

@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.

npm install @xpayr/node-sdk
Packagist Β· PHP 8.1+ / Laravel Β· v1.0.0

xpayr/xpayr-php

Zero-dependency PSR-compliant PHP SDK for Laravel, Symfony, WHMCS, and custom PHP backends with timing-safe webhook verification.

composer require xpayr/xpayr-php
NPM Β· Anthropic Registry Β· GHCR Β· v1.0.0

@xpayr/mcp-server

Official 21-tool Model Context Protocol server (io.github.xpayrcom/xpayr-mcp-server) for Claude Desktop, Cursor, VS Code Copilot, Windsurf, and Cline.

npx -y @xpayr/mcp-server
NPM Β· ES256 Offline Licensing Β· v0.2.0

@xpayr/extension-kit

Verify wallet-bound ES256 software, SaaS, CLI, and browser-extension JWT licenses offline against https://xpayr.com/.well-known/jwks.json.

npm install @xpayr/extension-kit
NPM Β· Audit & ERP Verification Β· v0.2.0

@xpayr/payment-evidence

Deterministic on-chain settlement envelope builder & verifier for external tax audits, dispute proof, and QuickBooks/Xero/NetSuite sub-ledgers.

npm install @xpayr/payment-evidence
Postman Β· Insomnia Β· Bruno Β· OpenAPI 3.1.0

xpayr-postman-collection

Complete 20-endpoint REST API v1 Postman collection, environment variables, pre-request HMAC scripts, and interactive OpenAPI 3.1.0 specs.

curl -O https://xpayr.com/.well-known/openapi.json

Copy-Paste Session Creation Across 6 Stacks

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);

Official SDKs β€” Frequently Asked Questions

Are XPayr SDKs published on official registries and open-source on GitHub?

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.

Can I integrate XPayr in Python, Go, Rust, or Ruby without a language-specific wrapper?

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.

Do all SDKs support free Testnet sandbox keys?

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.