fix
This commit is contained in:
@@ -48,7 +48,8 @@ class AtmosCallbackApiView(APIView):
|
|||||||
print("Atmos yuborgan SIGN:", sign)
|
print("Atmos yuborgan SIGN:", sign)
|
||||||
|
|
||||||
check_string = f"{store_id}{transaction_id}{invoice}{amount}{settings.API_KEY}"
|
check_string = f"{store_id}{transaction_id}{invoice}{amount}{settings.API_KEY}"
|
||||||
generated_sign = hashlib.sha256(check_string.encode())
|
print(check_string)
|
||||||
|
generated_sign = hashlib.sha256(check_string.encode()).hexdigest()
|
||||||
logger.info(f"Biz generatsiya qilgan SIGN: {generated_sign}")
|
logger.info(f"Biz generatsiya qilgan SIGN: {generated_sign}")
|
||||||
print("Biz generatsiya qilgan SIGN:", generated_sign)
|
print("Biz generatsiya qilgan SIGN:", generated_sign)
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class Atmos:
|
|||||||
'Authorization': f'Bearer {access_token}',
|
'Authorization': f'Bearer {access_token}',
|
||||||
}
|
}
|
||||||
data = {
|
data = {
|
||||||
'amount': int(amount),
|
'amount': int(amount) * 100,
|
||||||
'account': str(account),
|
'account': str(account),
|
||||||
'store_id': f'{self.store_id}'
|
'store_id': f'{self.store_id}'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user