5cbe093400
schedule job for updeing bank status and az iranian bank gateway admin style
32 lines
802 B
Python
32 lines
802 B
Python
from django.urls import path
|
|
|
|
from . import default_settings as settings
|
|
from .apps import AZIranianBankGatewaysConfig
|
|
from .views import (
|
|
callback_view,
|
|
go_to_bank_gateway,
|
|
sample_payment_view,
|
|
sample_result_view,
|
|
)
|
|
|
|
app_name = AZIranianBankGatewaysConfig.name
|
|
|
|
_urlpatterns = [
|
|
path("callback/", callback_view, name="callback"),
|
|
]
|
|
|
|
if not settings.IS_SAFE_GET_GATEWAY_PAYMENT:
|
|
_urlpatterns += [
|
|
path("go-to-bank-gateway/", go_to_bank_gateway, name="go-to-bank-gateway"),
|
|
]
|
|
|
|
if settings.IS_SAMPLE_FORM_ENABLE:
|
|
_urlpatterns += [
|
|
path("sample-payment/", sample_payment_view, name="sample-payment"),
|
|
path("sample-result/", sample_result_view, name="sample-result"),
|
|
]
|
|
|
|
|
|
def az_bank_gateways_urls():
|
|
return _urlpatterns, app_name, app_name
|