Conversion_Kitchen_Code/kitchen_counter/payment/templates/payments/urls.py

59 lines
2.9 KiB
Python
Raw Normal View History

2024-04-27 09:33:09 +00:00
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views
from django.views.generic import TemplateView
router = DefaultRouter()
router.register("refunds", views.Refunds, basename="refunds")
urlpatterns = [
path('payment/', views.payment, name="payment"),
path('student/', views.student, name="student"),
path('write/', views.valid, name="write"),
# path('success/<slug:title>/<slug:title2>',payment_success,name="paymentSuccess"),
# path('success2/<slug:title>/<slug:title2>',payment_success2,name="paymentSuccess2"),
# path('failed/',payment_failed,name="paymentFailed"),
path('refer/', views.Refer, name="refer"),
path('referexists/', views.referexists, name="referexists"),
path('refer_landing_page/', views.refer_landing_page,
name="refer_landing_page"),
path('gift/', views.Gift, name="gift"),
path('verifygift', views.verifyToken, name="giftverify"),
path('cancel/', views.cancel, name="cancel"),
path('sendmail/', views.sendMail, name="sendMail"),
path('promo/', views.Promo, name="promo"),
path('studentregis/', views.studentregis, name="studentregis"),
# path('success/',payment_success,name="paymentSuccess"),
# path('refer/',Refer,name="refer"),
# path('gift/',Gift,name="gift"),
# path('payment/',payment,name="paymenttest"),
# path('checkout/',checkout,name="checkout"),
# path('createpayment/',createpayment,name="createpayment"),
path('pcard/', views.pcard, name="pcard"),
path('card_razorpay/', views.card_razorpay, name="card_razorpay"),
path('paymentDone/', views.paymentDone, name="paymentDone"),
path('pricingCalculator/', views.pricingCalculator, name="pricingCalculator"),
path('refund/', views.refund, name="refund"),
# path('giftsent/<int:id>',GiftSent,name="giftsent"),
path('refunds/', include(router.urls), name="refunds"),
path('refunds/stripe/accept/<str:pk>/',
views.Stripe_Refund_Accept_View.as_view(), name="stripe-accept"),
path('refunds/stripe/reject/<str:pk>/',
views.Stripe_Refund_Reject_View.as_view(), name="stripe-reject"),
path('refunds/razorpay/accept/<str:pk>/',
views.RazorPay_Refund_Accept_View.as_view(), name="razorpay-accept"),
path('refunds/razorpay/reject/<str:pk>/',
views.RazorPay_Refund_Reject_View.as_view(), name="razorpay-reject"),
path('refunds/bulk/',
views.create, name="rf-bulk"),
path('refunds/admin/',
TemplateView.as_view(template_name="refund_index.html"),),
path('refund_admin/<str:id>/', views.refund_admin, name="refund_admin"),
# path('qr_payments_admin/',views.view_all_qr_payments, name='qr_payments_admin'),
# path('qr_payments_admin2/',views.view_all_payments2, name='qr_payments_admin2'),
# path('qr_payments_decision/<str:decision>/',views.gift_qr_payment_approved, name='qr_payments_decision'),
]