Files
zeekay 77891b2c7d feat(provider/mpesa): add Safaricom Daraja adapter for Kenya corridor
14th provider: M-Pesa via Daraja API for B2C payout, C2B STK Push pay-in,
and account-balance / transaction-status lookup. Registered in treasuryd
gated on MPESA_CONSUMER_KEY. FX, list-payments, CancelPayment, and
counterparty registration return ErrNotSupported (FX lives in forexd;
reversals are exposed via the privileged Reverse method).
2026-05-24 00:35:29 -07:00

11 lines
578 B
Go

// Package mpesa is the Safaricom M-Pesa Daraja adapter for treasuryd.
// It implements Provider for B2C payouts, C2B STK Push pay-ins, account
// balance queries, and transaction status lookup. FX, counterparty
// registration, and standard CancelPayment are unsupported by Daraja's
// model: FX is handled by forexd, payees are addressed by msisdn at
// send time, and reversals are a privileged operation exposed via the
// adapter's Reverse method rather than the Provider interface.
//
// Daraja API reference: https://developer.safaricom.co.ke/Documentation
package mpesa