\abdulmueid\mpesaTransactionResponse

Class TransactionResponse

Summary

Methods
Properties
Constants
__construct()
getCode()
getDescription()
getTransactionID()
getConversationID()
getTransactionStatus()
getResponse()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$response
$code
$description
$transaction_id
$conversation_id
$transaction_status
N/A

Properties

$response

$response : string

Full response from the M-Pesa API

Type

string

$code

$code : string

Response Code from M-Pesa API

Type

string

$description

$description : string

Response Description from M-Pesa API

Type

string

$transaction_id

$transaction_id : string

Transaction ID from M-Pesa Payment and Refund API

Type

string

$conversation_id

$conversation_id : string

Conversation ID from M-Pesa Payment and Refund API

Type

string

$transaction_status

$transaction_status : string

Transaction Status from M-Pesa Query API

Type

string

Methods

__construct()

__construct(string  $response) 

TransactionResponse constructor.

Parameters

string $response

getCode()

getCode() : string

Returns the Response Code

Returns

string

getDescription()

getDescription() : string

Returns the response description

Returns

string

getTransactionID()

getTransactionID() : string

Returns the TransactionID

Returns

string

getConversationID()

getConversationID() : string

Returns the Conversation ID

Returns

string

getTransactionStatus()

getTransactionStatus() : string

Returns the Transaction Status from Query API

Returns

string

getResponse()

getResponse() : string

Returns the raw response from M-Pesa API

Returns

string