Python client for MeSomb Services
You can check the full documentation of the api here
🏠 Homepage
pip3 install pymesomb
from pymesomb.operations import PaymentOperation
from pymesomb.utils import RandomGenerator
from datetime import datetime
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.make_collect({
'amount': 100,
'service': 'MTN',
'payer': '670000000',
'date': datetime.now(),
'nonce': RandomGenerator.nonce(),
'trxID': '1'
})
print(response.is_operation_success())
print(response.is_transaction_success())
from pymesomb.operations import PaymentOperation
from pymesomb.utils import RandomGenerator
from datetime import datetime
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.make_deposit({
'amount': 100,
'service': 'MTN',
'receiver': '670000000',
'date': datetime.now(),
'nonce': RandomGenerator.nonce(),
'trxID': '1'
})
print(response.is_operation_success())
print(response.is_transaction_success())
from pymesomb.operations import PaymentOperation
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.get_status()
print(response.name)
from pymesomb.operations import PaymentOperation
operation = PaymentOperation('<application_key>', '<access_key>', '<secret_key>')
response = operation.get_transactions(['ID1', 'ID2'])
print(response)
👤 Hachther LLC [email protected]
- Website: https://www.hachther.com
- Twitter: @hachther
- Github: @hachther
- LinkedIn: @hachther
Give a ⭐️ if this project helped you!