SolGate
Developer Documentation

Built for Builders

Integrate web3 payments in minutes. We handle the smart contracts, transaction state, and token management.

BETASDK v0.1 - Help us test!

Quick Start

1. Install the SDK

Add the SolGate SDK to your existing Node.js or browser application.

npm install @solgate/sdk @solana/web3.js

2. Create a Checkout

Create a secure checkout session. Your users will approve the transaction via Phantom or their preferred wallet.

import { SolGate } from '@solgate/sdk';

const solgate = new SolGate(process.env.SOLGATE_KEY);

const checkout = await solgate.checkout.create({
amount: 50.00,
currency: 'USDC',
successUrl: 'https://your-app.com/success'
});

3. Handle Webhooks

Receive real-time notifications when payments complete or subscriptions renew.

// Your webhook endpoint
app.post('/webhooks/solgate', (req, res) => {
payload = req.body;
signature = req.headers['x-solgate-signature'];

if (solgate.verify(payload, signature)) {
handlePayment(payload);
}
});

API Reference

POST
/v1/checkouts

Create a new checkout session

POST
/v1/subscriptions

Create a subscription plan

GET
/v1/transactions

List all transactions

GET
/v1/transactions/:id

Get transaction details

POST
/v1/webhooks

Register a webhook endpoint

GET
/v1/balance

Get merchant balance

SDK Status

TypeScript / JavaScriptBETA
PythonPLANNED
GoPLANNED
React ComponentsBETA
Vue ComponentsPLANNED
RustCONCEPT
COMING2025

Coming Soon

Sandbox Environment

Test mode with fake transactions and webhooks

Local Webhook Testing

solgate listen - forward events to localhost

SDK v1.0

Stable API, breaking changes resolved

Interactive Playground

Try API calls directly in the browser

Resources

Ready to build?

Get started with the SDK today. Questions? Join our Discord for support.