Implement Moyasar payments flow with webhooks
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
from django.urls import include, path
|
||||
from rest_framework.routers import DefaultRouter
|
||||
|
||||
from apps.payments.views import PaymentViewSet
|
||||
from apps.payments.views import PaymentViewSet, payment_webhook
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register(r"", PaymentViewSet, basename="payment")
|
||||
|
||||
urlpatterns = [
|
||||
path("webhook/", payment_webhook, name="payment-webhook"),
|
||||
path("", include(router.urls)),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user