This commit is contained in:
Yuriy Yuriev
2026-05-22 15:51:25 +07:00
parent 61cf029744
commit d9fd1ffbbd
3 changed files with 7 additions and 21 deletions
+1 -7
View File
@@ -603,7 +603,6 @@ class BotInterface:
"rub": amount,
"address": invoice.get("address"),
"url": invoice.get("url"),
"mock": invoice.get("mock", False),
"created_at": datetime.now().isoformat(),
}
await interface.payment_storage.save(invoice["payment_id"], payment_data)
@@ -635,11 +634,7 @@ class BotInterface:
await callback.answer("⏳ Проверяем...")
# Тестовый режим — сразу начисляем без проверки платежа
if payment.get("mock"):
status = "paid"
else:
status = await interface.heleket.check_status(payment["payment_id"])
status = await interface.heleket.check_status(payment["payment_id"])
if status == "paid":
await interface.payment_storage.delete(payment["payment_id"])
@@ -921,7 +916,6 @@ class BotInterface:
"rub": rub,
"address": invoice.get("address"),
"url": invoice.get("url"),
"mock": invoice.get("mock", False),
"created_at": datetime.now().isoformat(),
}
await interface.payment_storage.save(invoice["payment_id"], payment_data)