mpesa-php-sdk icon indicating copy to clipboard operation
mpesa-php-sdk copied to clipboard

A PHP sdk for the new Mpesa RESTful APIs

Results 29 mpesa-php-sdk issues
Sort by recently updated
recently updated
newest added

From Line 164 of the TransactionCallbacks.php $result=[ $transTime=>$transTime, $transAmount=>$transAmount, $businessShortCode=>$businessShortCode, $billRefNumber=>$billRefNumber, $invoiceNumber=>$invoiceNumber, $orgAccountBalance=>$orgAccountBalance, $thirdPartyTransID=>$thirdPartyTransID, $MSISDN=>$MSISDN, $firstName=>$firstName, $lastName=>$lastName, $middleName=>$middleName, $transID=>$transID, $transactionType=>$transactionType ]; The code above should be: $result=[ "transTime"=>$transTime, ''transAmount"=>$transAmount, "businessShortCode"=>$businessShortCode,...

line 255 of TransactionCallbacks.php reads $amount=$callbackData->stkCallback->Body->CallbackMetadata->Item[0]->Value; it should be $amount=$callbackData->Body->stkCallback->CallbackMetadata->Item[0]->Value;

Hey. there's a mismatch assignment in the STKPushSimulation function "'TransactionDesc' => $TransactionType,"

Hey, this SDK is really great. I have been able to successfully integrate. Just a thought: is it possible to add an [artisan cli command](https://laravel.com/docs/5.5/artisan) to register validation and confirmation...

Is there a way to pass some value when initializing transactions and the same value will be return as callback values? e.g return [ ‘invoice’ : ‘inv100837’ ]; and the...

Do you have a clear way of how SecurityCredential is generated? I have tried but keeps failing. $certFile = 'mpesa_public_cert.cer'; $certContent = file_get_contents($certFile); $publicKey = openssl_pkey_get_public($certContent); $encrypted = ''; openssl_public_encrypt($plaintext,...

am hosting my callback php script using infinity free but am not getting the data from the daraja api

To improve the provided PHP code, we can focus on several key areas: Code Duplication: There is significant duplication across the methods, which can be reduced. Error Handling: Add error...