TEST vs LIVE
Use TEST keys for integration development.
Rotate to LIVE only after checkout, webhooks, and payout flows are verified.
API hosts
SDK options:
/api/v1/merchant on the Morapay API.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Morapay separates TEST and LIVE at the API key level.
| TEST | LIVE | |
|---|---|---|
| Public key | pk_test_* | pk_live_* |
| Secret key | sk_test_* | sk_live_* |
| Funds | Simulated / sandbox rails | Real money movement |
| Dashboard | TEST mode toggle | LIVE mode toggle |
| Service | Production default | Local dev |
|---|---|---|
| Morapay API | https://api.morapay.io | |
| Checkout (hosted + widget) | https://checkout.morapay.io | http://localhost:3002 |
const morapay = new Morapay({
publicKey: process.env.MORAPAY_PUBLIC_KEY!,
secretKey: process.env.MORAPAY_SECRET_KEY!,
});
/api/v1/merchant on the Morapay API.
{ "success": true, "data": { ... }, "meta": { "page": 1, "limit": 20, "total": 42 } }
