Skip to main content

An unofficial python sdk for the QosIC platform. This platform provides an api to enable mobile money payments for businesses in Africa.

https://img.shields.io/pypi/v/qosic-sdk.svg https://img.shields.io/pypi/pyversions/qosic-sdk Documentation Status https://img.shields.io/badge/license-MIT-blue.svg https://img.shields.io/badge/code%20style-black-000000.svg

Features

  • Simple synchronous client to make your payment requests

  • Cover 100% of Qosic public api

  • Clean and meaningful exceptions

  • 100 % test coverage

  • Configurable timeouts

Quickstart

For those of you in a hurry, here’s a sample code to get you started.

pip install qosic-sdk
from dotenv import dotenv_values
from qosic import Client, bj

config = dotenv_values(".env")

moov_client_id = config.get("MOOV_CLIENT_ID")
mtn_client_id = config.get("MTN_CLIENT_ID")

login = config.get("SERVER_LOGIN")
password = config.get("SERVER_PASSWORD")

def main():
    phone = "229XXXXXXXX"
    mobile_carriers = [bj.MTN(id=mtn_client_id), bj.MOOV(id=moov_client_id)]
    client = Client(login=login, password=password, mobile_carriers=mobile_carriers)

    result = client.pay(phone=phone, amount=500)
    print(result)
    if result.success:
        print(f"Everything went fine")

    result = client.refund(reference=result.reference, phone=phone)
    print(result)


if __name__ == "__main__":
    main()

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Metadata

Release files for qosic-sdk 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qosic-sdk 5.1.0
File Size Uploaded
qosic_sdk-5.1.0.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qosic-sdk 5.1.0
File Interpreter ABI Platform
qosic_sdk-5.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / qosic_sdk-5.1.0.tar.gz

Download URL qosic_sdk-5.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1d9036163f6f8bc18ea2ea5f77deddd9a15c9155ec95990d94b286ce0b958acc
BLAKE2b-256 checksum
How to use checksums
58fbf2fa4c9c4e4cf027bcca6a488c29c36fc5694b701ee503b8152c2e9e73cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.2 Darwin/21.6.0

Release files / qosic_sdk-5.1.0-py3-none-any.whl

Download URL qosic_sdk-5.1.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67a1fd14af53c2ea6421968e734c54a72862b26ee655b46772f6b207ae90d901
BLAKE2b-256 checksum
How to use checksums
18f0694cbcc765faebdf50f1c2e852ac4ea0ffa9f720a0409bfddb25317ab608
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.2 Darwin/21.6.0

Release history Release notifications | RSS feed

This release

5.1.0 This release

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.0.3

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

1 release file

2.0.1

2 release files

2.0.0

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page