Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET method has params instead of json #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pypesa/mpesa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -500,4 +500,4 @@ def direct_debit_payment(self, transaction_query: Dict) -> Dict:
except (requests.ConnectTimeout, requests.ConnectionError):
raise MpesaConnectionError

#sys.modules[__name__] = Mpesa
#sys.modules[__name__] = Mpesa