The official TypeScript SDK provides a fully typed client for the OurPay API.
The new SDK is currently in public preview. Install it from the next tag to try it before the stable release.

Installation

Terminal

Quickstart

Create an organization access token for server-side use, keep it out of browser bundles, store it in OURPAY_ACCESS_TOKEN, and make your first request:
index.js
The import path pins your client to the 2026-10 API version.

Sandbox environment

The client uses production by default. Pass environment: "sandbox" to use the isolated sandbox environment:
View the current package on npm.

Frameworks

The SDK uses the standard fetch API and works directly in Node.js, Next.js, Bun, Deno, and modern edge runtimes. Use the versioned client in your server route; no framework adapter is required. See the Next.js guide for checkout and webhook examples.