The new SDK is currently in public preview. Install it from the
next tag to
try it before the stable release.Installation
- npm
- yarn
- pnpm
Terminal
Quickstart
Create an organization access token for server-side use, keep it out of browser bundles, store it inOURPAY_ACCESS_TOKEN, and make your first request:
index.js
2026-10 API version.
Sandbox environment
The client uses production by default. Passenvironment: "sandbox" to use the isolated sandbox environment:
Frameworks
The SDK uses the standardfetch 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.