Skip to main content

Mpesa API SDK

Project description

MPESA REST SDK

Language Build Status

Pure python sdk for MPESA API.

Features

  • Generate Token
  • C2B Register Url
  • C2B Simulate Transaction
  • C2B Simulate Transaction
  • B2B Payment Request
  • B2C Payment Request
  • Transaction Status
  • Account Balance
  • Reversal Request

Installation

$ pip install mpesa-sdk

Running tests

Create .env file from example then run

$ pip install pytest
$ pytest

To test for different python environments use

$ pip install tox
$ tox

Read more on wiki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpesa-sdk-1.0.7.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mpesa_sdk-1.0.7-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file mpesa-sdk-1.0.7.tar.gz.

File metadata

  • Download URL: mpesa-sdk-1.0.7.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for mpesa-sdk-1.0.7.tar.gz
Algorithm Hash digest
SHA256 d3c3921e1a14493efe87110a2cd2dc9b3f0037ed64d8791dfce24bfbc95ebe1c
MD5 67b0b5d23961958b36eb5ce624c36f1a
BLAKE2b-256 8d734c6b8ecaae05424b499dae3b4f68b9ae03008b3ef5712917c15c6e91bc10

See more details on using hashes here.

File details

Details for the file mpesa_sdk-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: mpesa_sdk-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for mpesa_sdk-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae08bdf23949211da331f457a8a174b69b88c3d6dcbd28119fc9df1f394e079
MD5 d7ec893efb0e5df742c463a1718e0ca5
BLAKE2b-256 b2fae3a0c2dae1c041e2f6233eed436924af30d4e06e49199e8ebbd3899c0545

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page