18 lines
993 B
Python
18 lines
993 B
Python
from django.urls import path, include
|
|
from .views import PaymentRequestView, PaymentRequestCreateApiView, PaymentConfirmView, \
|
|
ApplicationPaymentRequestCreateApiView, CalculateCommissionView
|
|
from ..core.views import HealthcheckView, StatusView
|
|
|
|
app_name = "pg"
|
|
|
|
urlpatterns = [
|
|
path('page/charge/<uuid>/', PaymentRequestView.as_view(), name='payment-request-view'),
|
|
path('page/confirm/<uuid>/', PaymentConfirmView.as_view(), name='payment-confirm-view'),
|
|
path('api/charge_create/', PaymentRequestCreateApiView.as_view(), name='charge-request-create-api-view'),
|
|
path('api/application/charge_create/<uuid>', ApplicationPaymentRequestCreateApiView.as_view(), name='application-user-charge-request-create-api-view'),
|
|
path('api/calculate_commission/', CalculateCommissionView.as_view(), name='calculate-commission-view'),
|
|
path('api/healthcheck', HealthcheckView.as_view(), name='healthcheck-view'),
|
|
path('api/status', StatusView.as_view(), name='status-view'),
|
|
|
|
]
|
|
|