Sith/eboutic/urls.py

41 lines
1.3 KiB
Python
Raw Permalink Normal View History

2023-04-06 11:08:42 +00:00
# -*- coding:utf-8 -*-
#
2023-04-06 11:08:42 +00:00
# Copyright 2023 © AE UTBM
# ae@utbm.fr / ae.info@utbm.fr
# All contributors are listed in the CONTRIBUTORS file.
#
2023-04-06 11:08:42 +00:00
# This file is part of the website of the UTBM Student Association (AE UTBM),
# https://ae.utbm.fr.
#
2023-04-06 11:08:42 +00:00
# You can find the whole source code at https://github.com/ae-utbm/sith3
#
2023-04-06 11:08:42 +00:00
# LICENSED UNDER THE GNU GENERAL PUBLIC LICENSE VERSION 3 (GPLv3)
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE
# OR WITHIN THE LOCAL FILE "LICENSE"
#
2023-04-06 11:08:42 +00:00
# PREVIOUSLY LICENSED UNDER THE MIT LICENSE,
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE.old
# OR WITHIN THE LOCAL FILE "LICENSE.old"
#
2022-09-25 19:29:42 +00:00
from django.urls import path, register_converter
2022-09-25 19:29:42 +00:00
from eboutic.converters import PaymentResultConverter
2024-06-24 11:07:36 +00:00
from eboutic.views import *
2022-09-25 19:29:42 +00:00
register_converter(PaymentResultConverter, "res")
urlpatterns = [
# Subscription views
2022-09-25 19:29:42 +00:00
path("", eboutic_main, name="main"),
path("command/", EbouticCommand.as_view(), name="command"),
path("pay/sith/", pay_with_sith, name="pay_with_sith"),
2022-09-25 19:29:42 +00:00
path("pay/<res:result>/", payment_result, name="payment_result"),
path("et_data/", e_transaction_data, name="et_data"),
2022-09-25 19:29:42 +00:00
path(
2022-11-16 22:08:13 +00:00
"et_autoanswer",
2018-10-04 19:29:19 +00:00
EtransactionAutoAnswer.as_view(),
name="etransation_autoanswer",
),
]