Websites12 min read

Secure payment confirmation webhooks in Dar es Salaam 2026

Mohamed Bah·Fondateur, Kolonell
August 27, 2026
Share:
Secure payment confirmation webhooks in Dar es Salaam 2026

Secure payment confirmation webhooks in Dar es Salaam 2026

Websites

The verdict in three sentences

An unsigned payment webhook lets anyone fake a confirmation and trigger a delivery without paying. The combination HMAC SHA-256 signature + IP verification + idempotency key shuts that door and guarantees zero double-credit. Across 50,000 transactions a month, a single poorly secured webhook can cost several million FCFA in fraud and disputes.

The three lines of defence

Securing a webhook means stacking independent controls. If one falls, the others hold.

ControlWhat it blocks2026 standard
HMAC SHA-256 signatureForged payloadSigned header, shared secret
Source IP verificationSpoofed senderOperator allow-list
Idempotency keyDouble processingUnique ID per transaction
Timestamp + toleranceRequest replay5-minute window
Strict HTTPSInterceptionTLS 1.2 minimum

The HMAC signature is the central control: it proves the message truly comes from the operator and was not altered in transit.

Mechanism comparison by operator

Each operator has its method. A unified module must handle all of them.

OperatorVerification methodOperator retryIdempotency
Provider AHMAC SHA-512 on bodyup to 24 hunique reference
Provider BIP verification + signatureup to 24 hidempotency-key
Provider CToken + signed callbackup to 12 htxn id
StripeSignature + timestampup to 72 hevent id

The critical common point: all resend the webhook multiple times when in doubt. Without idempotence, each resend = an extra credit.

The 9-control checklist

Need a professional website?

Kolonell builds websites that attract clients, optimized for the Sénégalese market. Free quote in 2 minutes.

A production webhook must pass these nine points before being considered safe.

#ControlRequired
1HMAC signature verifiedYes
2Source IP in allow-listYes
3Idempotency key storedYes
4Timestamp within windowYes
5Amount cross-checked with orderYes
6Transaction status confirmed via APIYes
7Fast 200 response (< 5 s)Yes
8Queue for async processingRecommended
9Immutable log of each eventYes

Mini case study

Sandrine, tech lead of an airtime top-up platform in Dar es Salaam, processes 50,000 transactions a month. Before hardening, a webhook without idempotence double-credited 1.5 % of operator retries, i.e. 750 duplicated transactions a month. At a 3,000 FCFA average basket, that was 2,250,000 FCFA of phantom credits to refund each month. After adding HMAC signature, the IP allow-list and the idempotency key, the double-credit rate fell to 0. The compliance work, estimated at 400,000 FCFA, was amortised in under a week.

FAQ

Is a signed webhook enough on its own? No. The signature proves origin, but without an idempotency key, the operator's multiple resends create duplicates. You need both, plus IP verification.

Why cross-check status via the API? Because a webhook can be delayed or lost. Confirming status with a direct API call ensures you only deliver on a truly completed payment, in 99.9 % of cases.

How long can an operator resend a webhook? Up to 24 hours for most, 72 h for Stripe. Your system must stay idempotent across that whole window.

Is a queue necessary? Strongly recommended above 10,000 transactions/month. It lets you return 200 immediately and process asynchronously, avoiding operator timeouts.

How much does securing a webhook cost? For an existing platform, budget 300,000 to 500,000 FCFA depending on the number of operators. ROI is immediate the moment one double-credit is avoided.

Let's talk about your project. We secure your payment webhooks with signature, idempotence and a queue. WhatsApp +221 77 596 93 33.

Tags:#webhook#security#signature#idempotency#api#payment#2026
Share:

Mohamed Bah

Fondateur, Kolonell

Passionate about digital and entrepreneurship in Africa, Mohamed has been helping Sénégalese businesses with their digital transformation since 2020. Founder of Kolonell, he believes every SME deserves a professional and accessible online présence.