Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
fixed error in salik balance
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNalin committed Aug 13, 2022
1 parent c67b7e8 commit 04e0e1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rtadubai/Salik.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ def balance_plate(plate, number, *, AreaCode=1, PlateType=1):
"PlateCountry": "AE",
"MobileCountryCode": "971",
"MobileNumber": number,
"language": "en"
}
response = requests.post("https://www.salik.rta.ae/surface/financial/balanceenquiry", data=data).json()
if response["Valid"]:
return response["SalikCredit"]
else:
return response["BusinessErrorMessage"]
return response['response']


# Havent tested this yet
Expand Down

0 comments on commit 04e0e1e

Please sign in to comment.