Transaction Status - osenco/mpesa GitHub Wiki
You can check for the status of a transaction by calling the `status" method at your endpoint.
C2B::status($transaction, $command = "TransactionStatusQuery", $remarks = "Transaction Status Query", $occassion = "Transaction Status Query");
You can pass an optional fifth argument that is a callback for processing the response from the request and returning true.
C2B::status($transaction, $command, $remarks, $occassion, function ($response){
// Do something with $response
return true;
});