$config
$config : \abdulmueid\mpesa\interfaces\ConfigInterface
The configuration class
Class Transaction
$config : \abdulmueid\mpesa\interfaces\ConfigInterface
The configuration class
__construct(\abdulmueid\mpesa\interfaces\ConfigInterface $config)
Transaction constructor.
| \abdulmueid\mpesa\interfaces\ConfigInterface | $config |
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.
| string | $msisdn | |
| float | $amount | |
| string | $reference | |
| string | $third_party_reference |
refund(string $transaction_id, float $amount) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface
Initiates the refund of a transaction on the M-Pesa Reversal API
| string | $transaction_id | |
| float | $amount |
query(string $query_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface
Queries the status of a transaction on the M-Pesa Query Transaction Status API
| string | $query_reference |