Skip to content

Commit

Permalink
fix: convert response to str
Browse files Browse the repository at this point in the history
  • Loading branch information
birddevelper committed Jun 4, 2024
1 parent 07b4fc0 commit 06e6521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azbankgateways/banks/bmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def verify(self, transaction_code):
super(BMI, self).verify(transaction_code)
data = self.get_verify_data()
response_json = self._send_data(self._verify_api_url, data)
if response_json["ResCode"] == "0":
if str(response_json["ResCode"]) == "0":
self._set_payment_status(PaymentStatus.COMPLETE)
extra_information = (
f"RetrivalRefNo={response_json['RetrivalRefNo']},SystemTraceNo={response_json['SystemTraceNo']}"
Expand Down

0 comments on commit 06e6521

Please sign in to comment.