mirror of
https://github.com/luxfi/treasury.git
synced 2026-10-30 15:15:00 +00:00
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).
11 lines
578 B
Go
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
|