mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 15:53:57 +00:00
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
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m15s
This commit is contained in:
@ -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"),
|
||||
]
|
||||
|
Reference in New Issue
Block a user