Developer Documentation
Built for Builders
Integrate web3 payments in minutes. We handle the smart contracts, transaction state, and token management.
1. Install the SDK
Add the SolGate SDK to your existing Node.js or browser application.
npm install @solgate/sdk @solana/web3.js2. Launch a Checkout
Create a secure checkout session. Your users will be redirected to approve the transaction via phantom or their preferred wallet.
import { SolGate } from '@solgate/sdk';
const solgate = new SolGate(process.env.SOLGATE_SECRET_KEY);
const checkout = await solgate.checkout.create({
amount: 50.00,
currency: 'USDC',
successUrl: 'https://your-app.com/success?session_id={CHECKOUT_SESSION_ID}'
});