Skip to main content
Recommended: use CLI setupnpx solvapay init for existing projects, or npm create solvapay -- --type mcp | next-auth0 to scaffold a new one.
This page covers the manual setup path.

Prerequisites

  • Node.js version 18.17 or higher
  • npm, yarn, or pnpm
  • TypeScript 5.0+ (recommended)

Install packages by use case

Server-side protection

React checkout components

Next.js integration

Auth adapters

Supabase Edge Functions

For Deno-based Supabase Edge Functions, no npm install is needed. Use an import map in supabase/functions/deno.json instead. See the Supabase Edge Functions guide for setup.

Supabase adapter for React

Core types only

Environment variables

Required for production:
Optional:

Stub mode

If SOLVAPAY_SECRET_KEY is not set, SDK calls run in stub mode for local testing.

Next steps