Skip to main content

One SDK. Every African payment. Python SDK for M-Pesa, Airtel Money, and more.

Project description

umojasdk (Python)

Python SDK for African mobile money integrations — M-Pesa, Airtel Money, and more.

Part of the UmojaSDK project by Synapse Softwares.

Install

pip install umojasdk

Usage

from umojasdk import UmojaMpesa, MpesaConfig, STKPushRequest

mpesa = UmojaMpesa(MpesaConfig(
    consumer_key="your_key",
    consumer_secret="your_secret",
    shortcode="174379",
    passkey="your_passkey",
    callback_url="https://yourapp.com/mpesa/callback",
    env="sandbox"
))

result = mpesa.stk_push(STKPushRequest(
    phone="0712345678",
    amount=1500,
    reference="ORDER-001"
))

print(result.checkout_request_id)

See the main repository for full documentation.

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

umojasdk-0.1.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

umojasdk-0.1.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file umojasdk-0.1.0.tar.gz.

File metadata

  • Download URL: umojasdk-0.1.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for umojasdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 274e8d9acba8e92c44b07bad585b14089c63d691625260aed023a048b3b27caf
MD5 ab452a961f597b713d406c9d91d10ef1
BLAKE2b-256 1ac640abfe993d7feb784ef8af4f434fb811c56bf9262f0b3eec2f930aebaf2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for umojasdk-0.1.0.tar.gz:

Publisher: publish-pypi.yml on Knelso/Umoja_SDK

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file umojasdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: umojasdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for umojasdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1dbdd10d1904eed2729478ba7ef2e3faa51b787694e5759ebaa4df978cf296f
MD5 b3b8231527e5bc7d38d2491a30028ed9
BLAKE2b-256 8f2c5e4a4bea52da1598568efbb704e68e7bb40eff19eeebb42ff5a35f7a83bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for umojasdk-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on Knelso/Umoja_SDK

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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