Build payment functionality into anything you make.
A single REST API for payments, checkout, transactions and webhooks — with a test environment so you can build with confidence before going live.
A REST API built around predictable resources.
Every endpoint returns structured JSON and follows the same conventions for authentication, errors and pagination.
Payments
Create and retrieve payments.
Transactions
List and inspect transaction records.
Webhooks
Register endpoints to receive events.
Authentication
Secure every request with an API key.
Authenticate every request with an API key.
Include your secret key in the Authorization header of every request. Keys are scoped to test or live mode.
GET /api/v1/payments Authorization: Bearer sk_test_xxxxxxxxxxxxxxxx Content-Type: application/json
Create a payment.
Send an amount, currency and customer email to create a new payment request.
POST /api/v1/payments { "amount": 25000, "currency": "NGN", "email": "customer@example.com", "reference": "ORDER-10001" }
GET /api/v1/transactions?status=success { "data": [ { "reference": "FSK-PAY-10001", "amount": 25000 } ] }
List and inspect transactions.
Filter transactions by status, date or reference to keep your records reconciled.
Receive payment events as they happen.
Register a webhook endpoint and FleakStack will notify it whenever a payment's status changes.
{
"event": "payment.success",
"reference": "FSK-PAY-10001",
"amount": 25000,
"currency": "NGN"
}
Build and test before going live.
Test mode mirrors the live API so you can build your full integration safely, then switch to live keys when you're ready.
POST /api/v1/payments Authorization: Bearer sk_test_xxxxxxxxxxxxxxxx { "amount": 1000, "currency": "NGN", "email": "test@example.com" }
Code examples.
Illustrative examples showing how a request to FleakStack is structured.
// Illustrative example const res = await fetch("/api/v1/payments", { method: "POST", headers: { "Authorization": "Bearer sk_test_xxxx" }, body: JSON.stringify({ amount: 25000, currency: "NGN", email: "customer@example.com" }) });
// Illustrative example $payload = [ 'amount' => 25000, 'currency' => 'NGN', 'email' => 'customer@example.com', ]; $response = fleakstack_request('/payments', $payload);
Start building with FleakStack.
Simple APIs. Seamless checkout. Powerful payment infrastructure.