Appearance
Payment links
A payment link is a standing page people can pay. You do not run a server and you do not use an API key. You create and edit links in the hub, under Links, while signed in. The payer does not need a MOOKHPay account.
Use a hosted checkout or a direct charge when each order has a price your server must set and confirm.
What a link is not
- There is no API to create, edit or list links. They are made in the hub.
- There are no webhooks for link payments. A link payment is not a checkout, so
payment.succeededis not sent for it. - There is no secret-key read of a link's payments. Read the link's pocket in the hub, or with a read-only key from an AI tool.
Addresses
| Address | What it is | Where the money goes |
|---|---|---|
/asha | A handle (username) | asha's main pocket |
/asha-rent | A payment link | The link's own pocket, or one you chose for it |
/pay/asha-rent | The same page. QR codes use this form | The same pocket |
A username is lowercase letters, digits and _, with no hyphen.
A link address:
- is 3 to 50 characters
- uses lowercase letters, digits and hyphens
- starts and ends with a letter or a digit
- contains at least one hyphen, which keeps it apart from every username
- contains no
-- - is not
m-chat,pay-manyorverify-email, which belong to the app
/pay/<name> works for every handle and every link. A short address whose first segment is one of the app's own routes, such as /wallet, opens the app instead; use /pay/<name> for that name.
The same address can exist once in Kenya and once in Uganda. A link on one country's deployment is not on the other.
Amount
A link can suggest an amount, and the payer can change it. The rail's minimum and maximum still apply.
?amount= on a link address is in major units, the number the payer would type:
text
https://mookhpay.co/asha-rent?amount=1500That opens the page with 1,500.00 filled in. The API's amounts are minor units; this query is not. An empty amount is an open amount.
Where the money is
Each new link gets its own pocket unless you choose a pocket you already hold. The pocket's balance is what the link collected, and its movements are the payments.
A payment from the M-Pesa menu to a link's address lands in its pocket even when the amount is outside the link's own limits, because M-Pesa completes a menu payment before MOOKHPay is asked. MOOKHPay records that the payment broke the link's rule, and the money stays in the pocket for you to deal with.
What the payer's page calls
The payer's page uses the public routes. They take no key and are not meant for a server integration.