Prerequisites
Before you can integrate Okito payments into your application, there are a few things you’ll need to have set up in your development environment. This guide will walk you through the necessary tools and packages to ensure a smooth start.
1. Node.js Environment
The Okito Core package is a JavaScript/TypeScript package and requires a Node.js environment to run.
- Node.js: We recommend using the latest Long-Term Support (LTS) version. You can download it from the official Node.js website .
- Package Manager: You will also need a package manager. This guide will use
pnpm, butnpmoryarnwork just as well.
You can check if you have Node.js and npm installed by running:
node -v
npm -v2. Okito API Key
To use Okito’s payment infrastructure, you’ll need an API key from the Okito dashboard.
- Sign up at app.okito.dev
- Create an API key in your dashboard settings
- Keep your API key secure - never expose it in client-side code
3. Development Environment Setup
For Frontend Applications (React/Next.js)
If you’re building a frontend application, you’ll need to set up wallet connectivity:
pnpm add @solana/wallet-adapter-react @solana/wallet-adapter-react-ui
pnpm add @solana/wallet-adapter-base @solana/web3.jsFor Backend Applications (Express/Node.js)
If you’re building a backend application, you’ll need additional packages:
pnpm add express dotenv
pnpm add -D @types/express @types/node tsx typescript4. Environment Variables
Set up your environment variables for secure configuration:
Frontend (.env.local)
NEXT_PUBLIC_APP_URL=https://app.okito.devBackend (.env)
OKITO_API_KEY=your_okito_api_key_here
PORT=3000
NODE_ENV=development5. HTTPS Setup (Production)
For production deployments, ensure you have:
- HTTPS enabled - Required for secure payment processing
- Valid SSL certificate - For secure communication
- Proper CORS configuration - For cross-origin requests
Next Steps
Once you have met these prerequisites, you are ready to install and integrate Okito payments into your application.