Skip to content

Transaction Status

Mauko Maunde edited this page Jan 8, 2021 · 1 revision

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;
});
Clone this wiki locally