1 post / 0 new
Enmowe
Conflicting Documentation: Undefined Possible Values for Identifier.
In the MPESA API PHP documentation, it states that the reqired parameters are: CommandID Unique command for each transaction type, possible values are: TransactionStatusQuery. ShortCode Organization /MSISDN sending the transaction. IdentifierType Type of organization receiving the transaction Remarks Comments that are sent along with the transaction. Initiator The name of Initiator to initiating the request. SecurityCredential Base64 encoded string of the Security Credential, which is encrypted using M-Pesa public key and validates the transaction on M-Pesa Core system. QueueTimeOutURL The path that stores information of time out transaction. ResultURL The path that stores information of transaction. TransactionID Organization Receiving the funds. Occasion   However, in the MPESA class, the required parameters are: /** * Use this function to make a transaction status request * @param $Initiator | The name of Initiator to initiating the request. * @param $SecurityCredential | Encrypted password for the initiator to autheticate the transaction request. * @param $CommandID | Unique command for each transaction type, possible values are: TransactionStatusQuery. * @param $TransactionID | Organization Receiving the funds. * @param $PartyA | Organization/MSISDN sending the transaction * @param $IdentifierType | Type of organization receiving the transaction * @param $ResultURL | The path that stores information of transaction * @param $QueueTimeOutURL | The path that stores information of time out transaction * @param $Remarks | Comments that are sent along with the transaction * @param $Occasion | Optional Parameter * @return mixed|string */ Ignoring the blaring mismatch of parameters, some of the parameters are not clearly defined with expected possible values. For instance:
  1. The parameter 'IdentifierType' has no defined possible values.
  2. The parameter 'Initiator' has a very vague definition of what it should be (is it the account username for instance? What should it be?).
If someone could be so kind to eplain these, I'd really appreciate it.