django-orchestra/orchestra/contrib/payments/settings.py

47 lines
1.1 KiB
Python
Raw Permalink Normal View History

from django.utils.translation import gettext_lazy as _
2015-07-16 13:07:15 +00:00
2015-05-04 19:52:53 +00:00
from orchestra.contrib.settings import Setting
2014-07-23 16:24:56 +00:00
2015-04-26 13:53:00 +00:00
from .. import payments
2014-07-23 16:24:56 +00:00
2015-04-26 13:53:00 +00:00
2015-04-27 14:54:17 +00:00
PAYMENT_CURRENCY = Setting('PAYMENT_CURRENCY',
'Eur'
)
PAYMENTS_DD_BILL_MESSAGE = Setting('PAYMENTS_DD_BILL_MESSAGE',
_("<strong>Direct debit</strong>, this bill will be automatically charged "
"to your bank account with IBAN number<br><strong>%(number)s</strong>."),
)
2015-04-27 14:54:17 +00:00
PAYMENTS_DD_CREDITOR_NAME = Setting('PAYMENTS_DD_CREDITOR_NAME',
'Orchestra'
)
2014-09-16 15:01:02 +00:00
2015-04-27 14:54:17 +00:00
PAYMENTS_DD_CREDITOR_IBAN = Setting('PAYMENTS_DD_CREDITOR_IBAN',
'IE98BOFI90393912121212'
)
2014-09-16 15:01:02 +00:00
2015-04-27 14:54:17 +00:00
PAYMENTS_DD_CREDITOR_BIC = Setting('PAYMENTS_DD_CREDITOR_BIC',
'BOFIIE2D'
)
2014-09-16 15:01:02 +00:00
2015-04-27 14:54:17 +00:00
PAYMENTS_DD_CREDITOR_AT02_ID = Setting('PAYMENTS_DD_CREDITOR_AT02_ID',
'InvalidAT02ID'
)
2014-09-16 15:01:02 +00:00
2015-04-27 14:54:17 +00:00
PAYMENTS_ENABLED_METHODS = Setting('PAYMENTS_ENABLED_METHODS',
(
2015-04-26 13:53:00 +00:00
'orchestra.contrib.payments.methods.sepadirectdebit.SEPADirectDebit',
'orchestra.contrib.payments.methods.creditcard.CreditCard',
),
# lazy loading
2016-02-09 12:17:42 +00:00
choices=lambda : ((m.get_class_path(), m.get_class_path()) for m in payments.methods.PaymentMethod.get_plugins(all=True)),
2015-04-26 13:53:00 +00:00
multiple=True,
)