Send a payment request directly to a user’s mobile device.
POST /direct-pay
Send a payment request directly to a user’s mobile device. You are responsible for building your own checkout and verifying payment status.
| Name | Required | Type | Description |
|---|---|---|---|
| amount | Yes | integer | Amount to be paid (minimum 100 XAF). |
| phone | Yes | string | Phone number to request payment from (e.g., 67XXXXXXX). |
| medium | No | string | "mobile money" or "orange money". Omit to auto-detect. |
| name | No | string | Payer’s name. |
| No | string | Payer’s email to receive receipt. | |
| userId | No | string | Your system’s user ID (1–100 chars; a–z, A–Z, 0–9, -, _). |
| externalId | No | string | Transaction/order ID for reconciliation (1–100 chars; a–z, A–Z, 0–9, -, _). |
| message | No | string | Reason for payment. |
200 OK with JSON body containing:
message: success messagetransId: transaction ID to track payment statusdateInitiated: date when the payment was initiatedAmount to be paid (minimum 100 XAF).
x >= 100Phone number where payment request is sent.
Payment medium (optional).
mobile money, orange money Name of the payer (optional).
Email of the payer for receipts (optional).
Internal user ID (optional).
^[a-zA-Z0-9\-_]{1,100}$Transaction/order ID for reconciliation (optional).
^[a-zA-Z0-9\-_]{1,100}$Reason for payment (optional).