$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 |
c2b(float $amount, string $msisdn, string $reference, string $third_party_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface
Initiates a C2B transaction on the M-Pesa API.
| float | $amount | |
| string | $msisdn | |
| string | $reference | |
| string | $third_party_reference |
b2c(float $amount, string $msisdn, string $reference, string $third_party_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface
Initiates a B2C transaction on the M-Pesa API.
| float | $amount | |
| string | $msisdn | |
| string | $reference | |
| string | $third_party_reference |
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.
| float | $amount | |
| string | $receiver_party_code | |
| string | $reference | |
| string | $third_party_reference |
reversal(float $amount, string $transaction_id, string $third_party_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface
Initiates a Reversal transaction on the M-Pesa API.
| float | $amount | |
| string | $transaction_id | |
| string | $third_party_reference |
query(string $query_reference, string $third_party_reference) : \abdulmueid\mpesa\interfaces\TransactionResponseInterface
Initiates a transaction Query on the M-Pesa API.
| string | $query_reference | |
| string | $third_party_reference |