Payment Collection & Checkout

PalmPay Hosted Checkout

Charge a customer on a PalmPay-hosted checkout page. You call one MonieFlex endpoint, we create the order on PalmPay and return a checkout_url. Redirect your customer there and they can pay with PalmPay Wallet or Instant Bank Transfer. When the payment succeeds we credit your MonieFlex balance and notify you.

How it works

  • 1. Your server POSTs to /palmpay/checkout with the amount and your own order reference
  • 2. MonieFlex creates the order on PalmPay and returns reference + checkout_url
  • 3. You redirect (or open) the customer to checkout_url — PalmPay shows the payment methods
  • 4. The customer pays; PalmPay notifies MonieFlex, MonieFlex credits your balance
  • 5. Confirm with GET /palmpay/checkout/{reference} (or your webhook) before delivering value
Never trust the browser redirect
callback_url is only where the customer lands after paying. Always confirm the payment with GET /palmpay/checkout/{reference} (status must be paid) or your webhook before you deliver value.

Endpoint

http
POST {{API_BASE_URL}}/v1/palmpay/checkout

Request body

json
{
  "reference": "order_10293",
  "amount_kobo": 20000,
  "title": "Order #10293",
  "customer_name": "Samuel Ade",
  "customer_email": "samuel@example.com",

"customer_phone": "08012345678",
  "callback_url": "https://yourstore.com/payment/return"
}

Required: amount_kobo. Everything else is optional — if you omit reference we generate one for you. Amounts are in kobo (₦200.00 = 20000).

Success response — HTTP 200

json
{
  "status": true,
  "data": {
    "reference": "order_10293",
    "checkout_url": "https://checkout.palmpay.com/pay/2c9180...",
    "amount_kobo": 20000,
    "status": "pending",
    "expires_at": "2026-09-15T09:05:12Z",
    "mode": "live"
  }
}

Idempotency

Safe to retry
Sending the same reference again returns the SAME order and checkout_url instead of charging twice — as long as it has not yet been paid.

Error responses

HTTP StatuscodeMeaning
422missing_fieldamount_kobo was not provided
422amount_too_lowMinimum amount is NGN 100 (10000 kobo)
409reference_paidThat reference has already been paid
403verification_requiredYour MonieFlex account is not yet verified for live mode
502checkout_failedPalmPay could not create the order — retry
POST /palmpay/checkout

Create a PalmPay checkout

Creates a PalmPay-hosted checkout order and returns the URL to send your customer to.

Request Parameters
Field Type Required Description
amount_kobo integer Yes Amount to charge, in kobo. Minimum 10000 (₦100).
reference string Optional Your own unique order reference. Generated if omitted.
title string Optional Shown on the PalmPay checkout page, e.g. 'Order #10293'.
customer_name string Optional Payer's name.
customer_email string Optional Payer's email address.
customer_phone string Optional Payer's phone number.
callback_url string Optional Where PalmPay returns the customer after payment.
Code Samples
cURL
curl -X POST {{API_BASE_URL}}/v1/palmpay/checkout \
  -H "Authorization: Bearer <secret_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "order_10293",
    "amount_kobo": 20000,
    "title": "Order #10293",
    "customer_name": "Samuel Ade",
    "customer_email": "samuel@example.com",
    "callback_url": "https://yourstore.com/payment/return"
  }'
Node.js
const res = await fetch("{{API_BASE_URL}}/v1/palmpay/checkout", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${secretKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    reference: "order_10293",
    amount_kobo: 20000,
    title: "Order #10293",
    customer_name: "Samuel Ade",
    customer_email: "samuel@example.com",
    callback_url: "https://yourstore.com/payment/return",
  }),
});
const { data } = await res.json();
// send the customer to data.checkout_url
PHP
<?php
$ch = curl_init("{{API_BASE_URL}}/v1/palmpay/checkout");
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_POST => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer " . $secretKey,
    "Content-Type: application/json",
  ],
  CURLOPT_POSTFIELDS => json_encode([
    "reference" => "order_10293",
    "amount_kobo" => 20000,
    "title" => "Order #10293",
    "callback_url" => "https://yourstore.com/payment/return",
  ]),
]);
$data = json_decode(curl_exec($ch), true)["data"];
header("Location: " . $data["checkout_url"]);
Success Response (200 OK)
{
  "status": true,
  "data": {
    "reference": "order_10293",
    "checkout_url": "https://checkout.palmpay.com/pay/2c9180...",
    "amount_kobo": 20000,
    "status": "pending",
    "expires_at": "2026-09-15T09:05:12Z",
    "mode": "live"
  }
}
Error Response
{
  "status": false,
  "code": "missing_field",
  "message": "Missing field: amount_kobo"

}
GET /palmpay/checkout/{reference}

Check a PalmPay checkout status

Confirms whether the customer has paid. Poll this, or wait for your webhook, before delivering value.

Request Parameters
Field Type Required Description
reference string Yes The reference returned when the checkout was created.
Code Samples
cURL
curl {{API_BASE_URL}}/v1/palmpay/checkout/order_10293 \
  -H "Authorization: Bearer <secret_key>"
Node.js
const res = await fetch(
  `{{API_BASE_URL}}/v1/palmpay/checkout/${reference}`,
  { headers: { Authorization: `Bearer ${secretKey}` } },
);
const { data } = await res.json();
if (data.paid) {
  // deliver value
}
PHP
<?php
$ch = curl_init("{{API_BASE_URL}}/v1/palmpay/checkout/" . $reference);
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ["Authorization: Bearer " . $secretKey],
]);
$data = json_decode(curl_exec($ch), true)["data"];
if ($data["paid"]) {
  // deliver value
}
Success Response (200 OK)
{
  "status": true,
  "data": {
    "reference": "order_10293",
    "status": "paid",
    "paid": true,
    "amount_kobo": 20000,
    "fee_kobo": 100,
    "net_kobo": 19900,
    "paid_at": "2026-09-15T08:47:31Z"
  }
}
Error Response
{
  "status": false,
  "code": "not_found",
  "message": "No checkout found for that reference"

}