schon/engine/payments/urls.py
Egor fureunoir Gorbunov b03757508b Features: 1) Update callback URL to exclude gateway parameter; 2) Process callback using associated transaction's gateway integration class;
Fixes: 1) Remove unused import for `UnknownGatewayError`;

Extra: 1) Cleanup unreachable code and obsolete comments in `CallbackAPIView`.
2025-11-12 17:27:43 +03:00

16 lines
537 B
Python

from django.urls import include, path
from rest_framework.routers import DefaultRouter
from engine.payments.views import CallbackAPIView, DepositView
from engine.payments.viewsets import TransactionViewSet
app_name = "payments"
payment_router = DefaultRouter()
payment_router.register(prefix=r"transactions", viewset=TransactionViewSet, basename="transactions")
urlpatterns = [
path(r"", include(payment_router.urls)),
path(r"deposit/", DepositView.as_view()),
path(r"<str:uuid>/callback/", CallbackAPIView.as_view()),
]