many fixes
This commit is contained in:
@@ -8,7 +8,8 @@ from .views import (
|
||||
PaymentViewSet,
|
||||
CreditPackageViewSet,
|
||||
CreditTransactionViewSet,
|
||||
AdminBillingViewSet
|
||||
AdminBillingViewSet,
|
||||
AccountPaymentMethodViewSet,
|
||||
)
|
||||
|
||||
router = DefaultRouter()
|
||||
@@ -17,9 +18,10 @@ router.register(r'payments', PaymentViewSet, basename='payment')
|
||||
router.register(r'credit-packages', CreditPackageViewSet, basename='credit-package')
|
||||
router.register(r'transactions', CreditTransactionViewSet, basename='transaction')
|
||||
router.register(r'admin', AdminBillingViewSet, basename='admin-billing')
|
||||
router.register(r'payment-methods', AccountPaymentMethodViewSet, basename='payment-method')
|
||||
|
||||
urlpatterns = [
|
||||
# Payment methods alias for easier frontend access
|
||||
path('payment-methods/', PaymentViewSet.as_view({'get': 'available_methods'}), name='payment-methods'),
|
||||
# Country/config-driven available methods (legacy alias)
|
||||
path('payment-methods/available/', PaymentViewSet.as_view({'get': 'available_methods'}), name='payment-methods-available'),
|
||||
path('', include(router.urls)),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user