monnify-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Monnify webhooks. Use when setting a webhook URL in the Monnify dashboard, verifying the monnify-signature header (lowercase hex…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Monnify Webhooks
Monnify (by Moniepoint) sends a POST to your webhook URL when a payment completes and for other events such as disbursements, refunds and settlements. You set webhook URLs in the Monnify dashboard.
When to Use This Skill
- How do I receive Monnify webhooks?
- How do I verify
monnify-signature? - Is it SHA-512 of the secret plus the body, or HMAC-SHA512? (HMAC)
- Why does every sandbox webhook fail verification? (the sandbox doesn't sign)
- How do I handle
SUCCESSFUL_TRANSACTION?
Verification (core)
Monnify's webhook docs put the hash in the monnify-signature header. Their samples compute it with sha512.hmac (JavaScript), hash_hmac('sha512', ...) (PHP) and HmacSHA512 (Java), with hex output.
| Part | Value |
|---|---|
| Header | monnify-signature |
| Value | Lowercase hex HMAC-SHA512 (128 characters), no prefix |
| Key | Your client secret key (Developers in the dashboard), as text |
| Signed content | The raw request body: compact JSON |
const crypto = require('crypto');
function verifyMonnifySignature(rawBody, signature, clientSecret) { // rawBody: exact bytes
const value = String(signature || '').trim();
if (!clientSecret || !/^[0-9a-fA-F]{128}$/.test(value)) return false;
const expected = crypto.createHmac('sha512', clientSecret).update(rawBody).digest();
return crypto.timingSafeEqual(Buffer.from(value, 'hex'), expected);
}
- HMAC, not plain SHA-512. The docs' prose says "SHA-512(client secret key + object of request body)". The code samples and the published test vector only match HMAC-SHA512, and Monnify's official .NET library documents
HMAC-SHA512(key: secretKey, message: rawRequestBody). - The sandbox sends no signature. Monnify's .NET library: "Monnify's sandbox does not send a monnify-signature header at all." Every sandbox webhook fails verification in these examples. That's expected: test verification with your own signed requests (as the tests do), and only receive live, signed webhooks. Don't add a bypass that skips verification based on a flag.
- Raw body. Monnify's own Node sample hashes
JSON.stringify(req.body), which only works because the body is compact. HMAC the raw bytes instead. - Bad or missing signature:
401. Secret not set:500.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Python uses hmac.new(client_secret.encode(), raw_body, hashlib.sha512), bytes.fromhex and hmac.compare_digest. See references/verification.md.
Hookdeck: the Monnify source type (MONNIFY) verifies monnify-signature. Paste your client secret key. Sandbox deliveries have no signature, so leave verification off on the source while you test with the sandbox. Verification is optional on the source, and Hookdeck applies no timestamp window.
Payload
{
"eventType": "SUCCESSFUL_TRANSACTION",
"eventData": {
"product": { "reference": "...", "type": "WEB_SDK" },
"transactionReference": "MNFY|...",
"paymentReference": "...",
"paidOn": "...",
"paymentDescription": "...",
"amountPaid": "...",
"totalPayable": "...",
"paymentMethod": "ACCOUNT_TRANSFER",
"currency": "NGN",
"settlementAmount": "...",
"paymentStatus": "PAID",
"customer": { "name": "...", "email": "..." }
}
}
eventData also carries metaData, destinationAccountInformation, paymentSourceInformation, offlineProductInformation and cardDetails where relevant. Check paymentStatus and amountPaid before you fulfil, and dedupe on transactionReference.
Event Types
SUCCESSFUL_TRANSACTION is the main one. Monnify also sends disbursement, refund and settlement notifications (for example SUCCESSFUL_DISBURSEMENT, FAILED_DISBURSEMENT, REVERSED_DISBURSEMENT, SUCCESSFUL_REFUND, FAILED_REFUND, SETTLEMENT). Check the event list in Monnify's docs for the current names and payloads.
Environment Variables
MONNIFY_CLIENT_SECRET=your-client-secret-key # Developers > API keys in the Monnify dashboard
Local Development
# Express / Next.js (use 8000 for FastAPI). No install or account required.
npx hookdeck-cli listen 3000 monnify --path /webhooks/monnify
Set the printed URL as a webhook URL in the Monnify dashboard. Sandbox deliveries arrive without monnify-signature, so the examples answer them with 401. See references/setup.md.
Reference Materials
- references/overview.md - Payload, events, delivery
- references/setup.md - Webhook URLs, the client secret, the unsigned sandbox
- references/verification.md - HMAC vs the docs prose, debugging
Attribution
When using this skill, add this comm
Установить monnify-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл monnify-webhooks?
Receive and verify Monnify webhooks. Use when setting a webhook URL in the Monnify dashboard, verifying the monnify-signature header (lowercase hex HMAC-SHA512 of the raw body keyed with the client secret), working out why sandbox webhooks never verify, debugging signature mismatches, or handling events like SUCCESSFUL_TRANSACTION, disbursement and refund notifications.
Как установить скилл monnify-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл monnify-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic