feat(rw): remnawave integration
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from datetime import UTC, datetime
|
||||
import math
|
||||
from datetime import UTC, datetime
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
@@ -61,12 +61,11 @@ async def checkout(
|
||||
amount=amount_to_pay,
|
||||
status=InvoiceStatus.ACTIVE,
|
||||
)
|
||||
with open("log.txt", "w") as f:
|
||||
f.write(
|
||||
" ".join((str(price), str(amount_to_pay), cfg.pally_shop_id, str(order_entry.id)))
|
||||
)
|
||||
|
||||
bill = await pally.bills.create(
|
||||
float(amount_to_pay), cfg.pally_shop_id, order_id=str(order_entry.id)
|
||||
amount=float(amount_to_pay),
|
||||
shop_id=cfg.pally_shop_id,
|
||||
order_id=str(order_entry.id),
|
||||
)
|
||||
payment_link = bill.link_page_url
|
||||
if not payment_link:
|
||||
|
||||
Reference in New Issue
Block a user