Refactor payment views: rename CreatePaymentView to ListCreatePaymentView, add payment retrieval endpoint, and enhance queryset filtering for user-specific payments.
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m15s

This commit is contained in:
2025-04-05 17:23:18 +05:00
parent 80e388a2a0
commit 02f680d579
2 changed files with 17 additions and 4 deletions

View File

@ -1,8 +1,9 @@
# billing/urls.py
from django.urls import path
from .views import CreatePaymentView, VerifyPaymentView
from .views import ListCreatePaymentView, VerifyPaymentView
urlpatterns = [
path("create-payment/", CreatePaymentView.as_view(), name="create-payment"),
path("payment/", ListCreatePaymentView.as_view(), name="create-payment"),
path("payment/<str:pk>/", ListCreatePaymentView.as_view(), name="retrieve-payment"),
path("verify-payment/", VerifyPaymentView.as_view(), name="verify-payment"),
]