Skip to content

Commit 46f929a

Browse files
committed
This fixes #4 opened by @mugoma by patching the transaction status mpesa endpoint
1 parent 989618c commit 46f929a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mpesa/api/transaction_status.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def check_transaction_status(
106106
else:
107107
base_safaricom_url = self.sandbox_url
108108
saf_url = "{0}{1}".format(
109-
base_safaricom_url, "/mpesa/stkpushquery/v1/query")
109+
base_safaricom_url, "/mpesa/transactionstatus/v1/query")
110110
try:
111111
r = requests.post(saf_url, headers=headers, json=payload)
112112
except Exception as e:

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
#!/usr/bin/env python
2+
"""Setup.py."""
13
import setuptools
24

35
with open("README.md", "r") as fh:
46
long_description = fh.read()
57

68
setuptools.setup(
79
name="daraja-mpesa",
8-
version="1.2",
10+
version="1.2.1",
911
author="Tralah M Brian",
1012
author_email="briantralah@gmail.com",
1113
description="A Python wrapper for Mpesa Daraja APIs abstracting raw https request",

0 commit comments

Comments
 (0)