Closed ngarawakimani closed 5 years ago
Brilliant work @ngarawakimani.
Thank you @mossey
Guys, something is not right somewhere. I did all that but still getting the same error Call to undefined function Safaricom\Mpesa\env() Below is my sample .env file
Below is my symfony package (2.7...) inside vendor
Below is a screenshot of my Mpesa.php
I dont know where I'm going wrong...kindly help. Seems like the symfony is not loading or something.
You are not supposed to touch that file, just make your own index.php and then add
require '../vendor/autoload.php';
Am gonna add an example folder later on to show exactly how to use this package especially if you do not use symphony based frameworks.
I will appreciate ... @ngarawakimani
This is a solution to issue number 7 (Fatal error: Call to undefined function Safaricom\Mpesa\env() in env() error.)
This error occurs when someone is not using laravel or a symphony based framework
We need to include symphony Dotenv component as a package and the declare an env() method like laravel does. Fixes #7 @KipchirchirIan @himanshupatel95