Skip to content
Products Solutions Developers Company Pricing
Developers

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.

Authentication

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.

authentication.http
GET /api/v1/payments
Authorization: Bearer sk_test_xxxxxxxxxxxxxxxx
Content-Type: application/json
Payments

Create a payment.

Send an amount, currency and customer email to create a new payment request.

create-payment.http
POST /api/v1/payments

{
  "amount": 25000,
  "currency": "NGN",
  "email": "customer@example.com",
  "reference": "ORDER-10001"
}
list-transactions.http
GET /api/v1/transactions?status=success

{
  "data": [
    { "reference": "FSK-PAY-10001", "amount": 25000 }
  ]
}
Transactions

List and inspect transactions.

Filter transactions by status, date or reference to keep your records reconciled.

Webhooks

Receive payment events as they happen.

Register a webhook endpoint and FleakStack will notify it whenever a payment's status changes.

webhook-payload.json
{
  "event": "payment.success",
  "reference": "FSK-PAY-10001",
  "amount": 25000,
  "currency": "NGN"
}
Test Environment

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.

test-mode.http
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.

javascript
// 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"
  })
});
php
// 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.