fix: change itpay webhook

This commit is contained in:
2026-05-11 14:29:17 +03:00
parent c86c4b451b
commit 10ff2a510d
3 changed files with 3 additions and 5 deletions

View File

@@ -15,7 +15,6 @@ from src.presentation.schemas.order import CreateOrder,CreateOrderResponse,Error
from src.presentation.schemas.itpay_payment_models import ItpayPaymentData
order_router = APIRouter(prefix='/order', tags=['orders'])
itpay_router = APIRouter(prefix='/itpay', tags=['itpay'])
@order_router.post(
@@ -87,7 +86,7 @@ async def create_order(
return content
@itpay_router.post('/webhook/itpay')
@order_router.post('/webhook/itpay')
async def itpay_webhook(
request: Request,
payment_command: CreatePaymentCommand = Depends(get_create_payment_command),