21 lines
594 B
Python
21 lines
594 B
Python
from django.urls import path
|
|
|
|
from tpv.views import (
|
|
payment_accepted,
|
|
payment_form,
|
|
payment_rejected,
|
|
transaction_created,
|
|
webhook,
|
|
)
|
|
|
|
app_name = "tpv"
|
|
|
|
|
|
urlpatterns = [
|
|
path("transaction/<str:transaction>/", transaction_created, name="order_created"),
|
|
path("transaction/<str:transaction>/webhook/", webhook, name="webhook"),
|
|
path("transaction/<str:transaction>/ok/", payment_accepted, name="ok"),
|
|
path("transaction/<str:transaction>/ko/", payment_rejected, name="ko"),
|
|
path("transaction/<str:transaction>/form/", payment_form, name="payment_form"),
|
|
]
|