Response structs for the B2C Payment Request API.
Summary
Functions
Parses a raw response map into a Success or Error struct.
Functions
@spec from_map(map()) :: Daraja.B2C.Response.Success.t() | Daraja.B2C.Response.Error.t()
Parses a raw response map into a Success or Error struct.
Note: Safaricom may return the misspelled key OriginatorCoversationID
(missing the second 'n'). Both spellings are handled for resilience.