Skip to content

Commit

Permalink
Allow configuring BANK_TRANSFER_METHOD_NAME
Browse files Browse the repository at this point in the history
This is currently used only for unmanaged bank transfers, and is only
used to show the instructions for how to pay such an invoice.
  • Loading branch information
mhagander committed Nov 27, 2023
1 parent 8d96a14 commit fbf46e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions postgresqleu/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@

CURRENCY_FORMAT = '{ABBREV} {AMOUNT}'

# Method used for bank payments (used only in descriptive texts)
BANK_TRANSFER_METHOD_NAME = 'IBAN'

# Process EU-specific VAT rules
EU_VAT = False
# Home country prefix for EU VAT
Expand Down
4 changes: 2 additions & 2 deletions postgresqleu/util/payment/banktransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ class Banktransfer(BasePayment):
backend_form_class = BackendBanktransferForm
description = """
Using this payment method, you can pay via a regular bank transfer
using IBAN. Note that this requires that you are able to make a
using {}. Note that this requires that you are able to make a
payment in {}, and requires you to cover all transfer charges.
""".format(settings.CURRENCY_ABBREV)
""".format(settings.BANK_TRANSFER_METHOD_NAME, settings.CURRENCY_ABBREV)

def build_payment_url(self, invoicestr, invoiceamount, invoiceid, returnurl=None):
param = {
Expand Down

0 comments on commit fbf46e6

Please sign in to comment.