Files
zeekay 7e5f5b11dd feat(provider/mpesa): IdempotencyKey takes precedence over Reference
Daraja already exposes idempotency through OriginatorConversationID
(returned verbatim on duplicate submissions). The adapter previously
sourced that field from req.Reference. With the new generic
CreatePaymentRequest.IdempotencyKey field landing across all treasury
adapters, mpesa now prefers IdempotencyKey when set and falls back to
Reference for callers that pre-date the field — zero breaking change.

Added focused test asserting the precedence and the fallback.
2026-05-24 19:21:16 -07:00
..