Zeny SDK

The official TypeScript SDK for integrating Zeny's payment facilitator into your applications. Supports server middleware, client-side payments, and React hooks.

Packages

  • @zeny/sdk — Core client and types
  • @zeny/sdk/server — Server middleware for protecting endpoints
  • @zeny/sdk/react — React hooks and providers

Key Classes

  • ZenyClient — Main client for verify, settle, and getSupported operations
  • createZenyMiddleware() — Express/Next.js middleware that handles 402 flow automatically
  • ZenyProvider — React context provider
  • useZenyPay() — React hook for making payments

Get started with Installation or jump to the Quickstart.