Skip to main content

A Python SDK for Safaricom Daraja C2B APIs

Project description

MPESA C2B SDK

This SDK is a simplified and improved version of existing Mpesa C2B packages. It helps developers easily integrate with Safaricom's Daraja API, focusing specifically on Customer to Business (C2B) transactions — like simulating payments and registering callback URLs.

Features

  1. Easy URL registration (register_url)
  2. Simulate C2B transactions (simulate)
  3. Minimal setup with .env support

Installation

pip install mpesa-c2b-sdk==0.1.0

Ideal for developers building Kenyan payment solutions using Safaricom's sandbox or production APIs.

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_c2b_sdk-0.1.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

mpesa_c2b_sdk-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file mpesa_c2b_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: mpesa_c2b_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for mpesa_c2b_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b1ced197cf05b9719d1c184320a8efac23badce3ba79125fc4460b4931210c1c
MD5 d22d4957548ec3851a0a061a124fe879
BLAKE2b-256 2f62e66c6d4515e6732058574a18701456430d9f31892ebbfdde6cce20f5dbb6

See more details on using hashes here.

File details

Details for the file mpesa_c2b_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mpesa_c2b_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for mpesa_c2b_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae641fd0acf82c95011fa9ea595117c5f51441d8fce60aa5831e1ee7d1498e00
MD5 ae465afacbab6a195a302dbfe954683d
BLAKE2b-256 bbf7cce9e9d08fa52c11396c7b8ff8bf4e3326202d3aa74a04c27129aa8d2cbd

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