debugging
This commit is contained in:
@@ -35,6 +35,7 @@ async def pally_callback(
|
|||||||
deps: APIDependenciesDTO = Depends(get_deps),
|
deps: APIDependenciesDTO = Depends(get_deps),
|
||||||
):
|
):
|
||||||
oid = custom or ""
|
oid = custom or ""
|
||||||
|
logger.info("invid: %s, outsum: %s, commission: %s, TrsId: %s, status: %s, currencyin: %s, custom: %s, sign: %s", InvId, OutSum, Commission, TrsId, Status, CurrencyIn, custom, SignatureValue)
|
||||||
raw_string = f"{OutSum}:{InvId}:{settings.pally_token}"
|
raw_string = f"{OutSum}:{InvId}:{settings.pally_token}"
|
||||||
expected_signature = hashlib.md5(raw_string.encode("utf-8")).hexdigest().upper()
|
expected_signature = hashlib.md5(raw_string.encode("utf-8")).hexdigest().upper()
|
||||||
|
|
||||||
@@ -49,7 +50,7 @@ async def pally_callback(
|
|||||||
logger.info("Received successfully paid bill %s", TrsId)
|
logger.info("Received successfully paid bill %s", TrsId)
|
||||||
|
|
||||||
if not oid.isdigit():
|
if not oid.isdigit():
|
||||||
logger.critical("Invalid custom field format for TrsId %s", TrsId)
|
logger.critical("Invalid custom field format for TrsId %s: %s", TrsId, custom)
|
||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
bill = await deps.bills_repository.get_bill_by_id(session, int(oid))
|
bill = await deps.bills_repository.get_bill_by_id(session, int(oid))
|
||||||
|
|||||||
Reference in New Issue
Block a user