/mpesa-api-go

The unofficial Safaricom MPESA API Wrapper for Golang

Primary LanguageGoMIT LicenseMIT

MPESA Golang API Wrapper

The wrapper provides convenient access to the Safaricom MPESA G2 API from applications written in server-side Golang.

This is Work in Progress!

Installing

You can install the package by running:

go get github.com/safaricom/mpesa-api-go

Usage

The package needs to be configured with your appKey and appSecret which can be obtained from Safaricom.

const (
	appKey = "YOUR_APP_KEY"		    
	appSecret = "YOUR_APP_SECRET"	   
)

This documentation is being updated