mirror of https://gitlab.federez.net/re2o/re2o
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
583 B
25 lines
583 B
from django.conf.urls import include, url
|
|
from django.utils.translation import ugettext_lazy as _l
|
|
|
|
from . import comnpay, cheque
|
|
|
|
|
|
urlpatterns = [
|
|
url(r'^comnpay/', include(comnpay.urls, namespace='comnpay')),
|
|
url(r'^cheque/', include(cheque.urls, namespace='cheque')),
|
|
]
|
|
|
|
PAYMENT_METHODS = [
|
|
comnpay,
|
|
cheque,
|
|
]
|
|
|
|
|
|
def find_payment_method(payment):
|
|
for method in PAYMENT_METHODS:
|
|
try:
|
|
o = method.PaymentMethod.objects.get(payment=payment)
|
|
return o
|
|
except method.PaymentMethod.DoesNotExist:
|
|
pass
|
|
return None
|
|
|