safaricom / mpesa-php-sdk

A PHP sdk for the new Mpesa RESTful APIs
188 stars 211 forks source link

Function to generate securitycredential automatically #38

Open dzagey opened 5 years ago

dzagey commented 5 years ago

I wrote a new function to generate the securitycredential for the user. They now have to declare two more environment variables; MPESA_PASSWORD and MPESA_PUBLICKEYPATH which is used to generate the securitycredential.

The other functions were changed to make the securitycredential param requirement optional and comments and documentations editted accordingly.

This is untested, hope you can pull and test it though and release to the public. P.S. my first public contribution. I welcome feedback. Thank you.

StanleyMasinde commented 3 years ago

Does this project have a maintainer?