\abdulmueid\mpesaTransaction

Class Transaction

Summary

Methods
Properties
Constants
__construct()
c2b()
b2c()
b2b()
reversal()
query()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$config
N/A

Properties

Methods

c2b()

c2b(float  $amount, string  $msisdn, string  $reference, string  $third_party_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface

Initiates a C2B transaction on the M-Pesa API.

Parameters

float $amount
string $msisdn
string $reference
string $third_party_reference

Throws

\Exception

Returns

\abdulmueid\mpesa\interfaces\TransactionResponseInterface

b2c()

b2c(float  $amount, string  $msisdn, string  $reference, string  $third_party_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface

Initiates a B2C transaction on the M-Pesa API.

Parameters

float $amount
string $msisdn
string $reference
string $third_party_reference

Throws

\Exception

Returns

\abdulmueid\mpesa\interfaces\TransactionResponseInterface

b2b()

b2b(float  $amount, string  $receiver_party_code, string  $reference, string  $third_party_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface

Initiates a B2B transaction on the M-Pesa API.

Parameters

float $amount
string $receiver_party_code
string $reference
string $third_party_reference

Returns

\abdulmueid\mpesa\interfaces\TransactionResponseInterface

reversal()

reversal(float  $amount, string  $transaction_id, string  $third_party_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface

Initiates a Reversal transaction on the M-Pesa API.

Parameters

float $amount
string $transaction_id
string $third_party_reference

Returns

\abdulmueid\mpesa\interfaces\TransactionResponseInterface

query()

query(string  $query_reference, string  $third_party_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface

Initiates a transaction Query on the M-Pesa API.

Parameters

string $query_reference
string $third_party_reference

Returns

\abdulmueid\mpesa\interfaces\TransactionResponseInterface