payload property

Map<String, dynamic> payload

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,
    };