fix pay
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user