Community-driven admin KkiaPay Sdk for Python.
To get the latest version of KkiaPay Sdk for Python , simply run:
pip install kkiapay
Behold, the power of kkiapay-python
:
from kkiapay import Kkiapay
k = Kkiapay('public_key', 'private_key', 'secret', sandbox=True)
transaction = k.verify_transaction('LVFNrK1nx')
print(transaction)
# => {
# "performed_at":"2023-02-20T17:44:47.842Z",
# "received_at":1676915100302,
# "type":"DEBIT",
# "status":"SUCCESS",
# "source":"MOBILE_MONEY",
# "source_common_name":"mtn-benin",
# "amount":100,
# "fees":2,
# "net":0,
# "externalTransactionId":"test",
# "transactionId":"123",
# ...
# }
from kkiapay import Kkiapay
k = Kkiapay('public_key', 'private_key', 'secret', sandbox=True)
transaction = k.refund_transaction('LVFNrK1nx')
print(transaction)
# => {
# "code":"SUCCESS",
# "description":"REVERTED",
# "transactionId":"123"
# }
Schedule payout API is deprecated and no longer supported as of Feb 20th, 2023 from the API and can be done only on the dashboard until further notice.
Check our contribution guide.
kkiapay-python
is open-sourced software licensed under the MIT license.