payload property
Implementation
Map<String, dynamic> get payload => {
"Initiator": mpesa.initiatorName,
"SecurityCredential": mpesa.securityCredential,
"CommandID": commandID.enumValue,
"SenderIdentifierType": "${mpesa.identifierType.value}",
"RecieverIdentifierType": "${identifierType.value}",
"Amount": amount,
"PartyA": mpesa.shortCode,
"PartyB": shortCode,
if (accountReference != null) "AccountReference": accountReference,
"Remarks": remarks,
"QueueTimeOutURL": queueTimeOutURL,
"ResultURL": resultURL,
};