Sandbox on Solana devnet. No real funds move here. Use sk_test_ keys and a wallet set to devnet. Get devnet SOL from the Solana faucet and devnet USDC from the Circle faucet.
Test crypto payments on Solana devnet with the SolKnife Gateway sandbox: devnet USDC and SOL, sk_test_ API keys, the hosted checkout, and signed callbacks, with no real funds.
The sandbox
The sandbox at https://sandbox.gate.solknife.xyz runs the same Gateway on Solana devnet, with its own database. No real funds move. Accounts are separate from production, so you register there first. Sandbox API keys start with sk_test_. The sandbox rejects sk_live_ keys and production rejects sk_test_ keys, with the error API_KEY_CLUSTER_MISMATCH.
1. Fund a devnet wallet
Set the paying wallet to Solana devnet. Get devnet SOL from https://faucet.solana.com and devnet USDC from https://faucet.circle.com. The paying wallet needs SOL for the network fee and the 0.0012 SOL gateway fee.
2. Register on the sandbox
Use devnet USDC (4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU) or another SPL Token mint that exists on devnet for indexTokenMint. A mint that exists only on mainnet fails with TOKEN_MINT_NOT_FOUND. The sandbox sends Telegram notices from its own bot; the sandbox docs name it.
Create the payment with your sk_test_ key against the sandbox URL. Open checkoutUrl and pay with a wallet set to devnet: scan the Solana Pay QR code on a desktop, or open the wallet from the page on a phone.
Gateway finds the transaction, verifies it at finalized commitment, marks the payment CONFIRMED, and sends the signed payment.confirmed callback to your callbackUrl, signed with your sandbox webhook secret. The callback history shows whether your endpoint accepted it. The sandbox docs also show how to send a test callback before the first payment.
Check the payment and the callback
const GATE_URL = "https://sandbox.gate.solknife.xyz";
// data is the payment from the create call above.
const checkout = await fetch(
`${GATE_URL}/api/checkout/${data.id}?reference=${encodeURIComponent(data.reference)}`,
).then((r) => r.json());
// checkout.data.status: "PENDING", then "CONFIRMED" once Gateway verifies the transaction
const callbacks = await fetch(`${GATE_URL}/api/webhooks`, {
headers: { "x-gateway-key": process.env.GATE_API_KEY },
}).then((r) => r.json());
// callbacks.data[0]: eventType "payment.confirmed", status "DELIVERED", httpStatus 200
5. Go live
Register again on https://sandbox.gate.solknife.xyz, then change the base URL, the API key, and the webhook secret in your backend. Use a mainnet mint such as USDC for the accepted token.
Register your business to get a Gateway API key and a webhook secret. Payments go straight to your wallet; Gateway takes a fixed 0.0012 SOL fee per payment.