add bankaccount
This commit is contained in:
parent
acb5d9c0da
commit
3a73c96dd8
|
@ -109,3 +109,6 @@ COINIFY_IPN_SECRET = env('COINIFY_IPN_SECRET')
|
|||
|
||||
LETTERHEAD_PDF_PATH = os.path.join(local_dir('static_src'), 'pdf', env('PDF_LETTERHEAD_FILENAME'))
|
||||
PDF_ARCHIVE_PATH='/usr/local/www/pdf_archive/'
|
||||
|
||||
BANKACCOUNT_IBAN = env('BANKACCOUNT_IBAN')
|
||||
BANKACCOUNT_SWIFTBIC = env('BANKACCOUNT_SWIFTBIC')
|
||||
|
|
|
@ -16,3 +16,6 @@ COINIFY_API_SECRET=''
|
|||
COINIFY_IPN_SECRET=''
|
||||
PDF_LETTERHEAD_FILENAME=''
|
||||
MEDIA_ROOT=''
|
||||
BANKACCOUNT_IBAN=''
|
||||
BANKACCOUNT_SWIFTBIC=''
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
<h2>Pay by Bank Transfer</h2>
|
||||
|
||||
<p class="lead">
|
||||
IBAN: DKnoget
|
||||
Swift: nogetandet
|
||||
IBAN: {{ iban }}<br>
|
||||
Swift/BIC: {{ swiftbic }}
|
||||
</p>
|
||||
|
||||
<p>Note: It might take several days before we register your bank transfer, especially if you are outside of SEPA region.</p>
|
||||
<p>Note: Please allow for up to a week before we register your bank transfer, especially if you are outside of the SEPA region.</p>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -379,6 +379,12 @@ class BankTransferView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUnpai
|
|||
model = Order
|
||||
template_name = 'bank_transfer.html'
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(BankTransferView, self).get_context_data(**kwargs)
|
||||
context['iban'] = settings.BANKACCOUNT_IBAN
|
||||
context['swiftbic'] = settings.BANKACCOUNT_SWIFTBIC
|
||||
return context
|
||||
|
||||
#################################################################################
|
||||
|
||||
class CoinifyRedirectView(LoginRequiredMixin, EnsureUserOwnsOrderMixin, EnsureUnpaidOrderMixin, EnsureClosedOrderMixin, EnsureOrderHasProductsMixin, SingleObjectMixin, RedirectView):
|
||||
|
|
Loading…
Reference in a new issue