KopoKopo
KopoKopo integration behind the same API
Bring your KopoKopo account and use it exactly like an M-PESA shortcode: the same STK call, the same verified settlement, the same signed webhook. Switching provider is a different account id, not a rewrite.
KopoKopo payments are confirmed against KopoKopo's own status resource before settling.
Prompt sent
STK Push to 07•• ••• 678 · KES 1,500 · INV-2041
Customer entered PIN
Safaricom callback received: claims success
Verified with Safaricom
STK Query: paid · receipt TL3A9K2XQ7 · amount matches
Webhook delivered
POST https://shop.example/payments · 200 OK · signed
X-MyPayments-Event: payment.settled
X-MyPayments-Signature: t=1796313600,v1=9f2c…e41a
{ "event": "payment.settled",
"transaction": { "reference": "INV-2041",
"amount": "1500.00", "status": "settled",
"verified": true, "provider_receipt": "TL3A9K2XQ7", … }
}
How kopokopo works
One integration, two providers
Your code posts to one endpoint and reads one webhook format. We speak KopoKopo's OAuth and payment-request API behind it.
Credentials sealed
Your client id, secret and API key are encrypted at rest and used only at the moment we call KopoKopo.
Questions about kopokopo
Can one business use M-PESA and KopoKopo together?
Yes. Add both accounts and choose per payment.