diff --git a/pypesa/mpesa.py b/pypesa/mpesa.py index 4f78cf9..756c1f6 100644 --- a/pypesa/mpesa.py +++ b/pypesa/mpesa.py @@ -426,7 +426,7 @@ def query_transaction_status(self, transaction_query: Dict) -> Dict: try: return requests.get( self.urls.transaction_status, - json=transaction_query, + params=transaction_query, headers=self.default_headers(), verify=True, ).json() @@ -500,4 +500,4 @@ def direct_debit_payment(self, transaction_query: Dict) -> Dict: except (requests.ConnectTimeout, requests.ConnectionError): raise MpesaConnectionError -#sys.modules[__name__] = Mpesa \ No newline at end of file +#sys.modules[__name__] = Mpesa