\abdulmueid\mpesaTransaction

Class Transaction

Summary

Methods
Properties
Constants
__construct()
payment()
refund()
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

payment()

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

Initiates a payment transaction on the M-Pesa C2B API.

Parameters

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

Returns

\abdulmueid\mpesa\interfaces\TransactionResponseInterface

refund()

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

Initiates the refund of a transaction on the M-Pesa Reversal API

Parameters

string $transaction_id
float $amount

Returns

\abdulmueid\mpesa\interfaces\TransactionResponseInterface