Skip to content

Commit

Permalink
added json response to direct debit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalebu committed Feb 14, 2021
1 parent 5e1692a commit 8d5b3d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pypesa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def payment_reversal(self, transaction_query: dict) -> dict:
json=transaction_query,
headers=self.default_headers(),
verify=True,
).text
).json()

except (requests.ConnectTimeout, requests.ConnectionError):
raise MpesaConnectionError
Expand Down Expand Up @@ -393,7 +393,7 @@ def create_direct_debit(self, transaction_query: dict) -> dict:
json=transaction_query,
headers=self.default_headers(),
verify=True,
)
).json()

except (requests.ConnectTimeout, requests.ConnectionError):
raise MpesaConnectionError
Expand All @@ -409,7 +409,7 @@ def direct_debit_payment(self, transaction_query: dict) -> dict:
json=transaction_query,
headers=self.default_headers(),
verify=True,
)
).json()
except (requests.ConnectTimeout, requests.ConnectionError):
raise MpesaConnectionError

Expand Down

0 comments on commit 8d5b3d2

Please sign in to comment.