This is a simple application to send Mpesa STK Push requests using the Daraja API to Kenyan Members of Parliament.
To run this application, you need to have Go installed on your machine. You can download and install Go from the official website.
-
Clone the repository
git clone https://github.com/0x6flab/fantastic-succotash
-
Run
go mod downloadto download the dependenciesgo mod download
-
Create a
.envfile in the root directory and add the following environment variablesMPESA_CONSUMER_KEY= MPESA_CONSUMER_SECRET= MPESA_PASS_KEY=
-
Run the application
go run main.go