mirror of
https://github.com/pretix/pretix.git
synced 2026-02-20 09:02:27 +00:00
Add PaymentProvider.public_name
This commit is contained in:
@@ -80,6 +80,16 @@ class BasePaymentProvider:
|
||||
"""
|
||||
raise NotImplementedError() # NOQA
|
||||
|
||||
@property
|
||||
def public_name(self) -> str:
|
||||
"""
|
||||
A human-readable name for this payment provider to be shown to the public.
|
||||
This should be short but self-explaining. Good examples include 'Bank transfer'
|
||||
and 'Credit card', but 'Credit card via Stripe' might be to explicit. By default,
|
||||
this is the same as ``verbose_name``
|
||||
"""
|
||||
return self.verbose_name
|
||||
|
||||
@property
|
||||
def identifier(self) -> str:
|
||||
"""
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
data-parent="#payment_accordion"
|
||||
{% if selected == p.provider.identifier %}checked="checked"{% endif %}
|
||||
data-toggle="radiocollapse" data-target="#payment_{{ p.provider.identifier }}" />
|
||||
<strong>{{ p.provider.verbose_name }}</strong>
|
||||
<strong>{{ p.provider.public_name }}</strong>
|
||||
</label>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
data-parent="#payment_accordion"
|
||||
{% if selected == p.provider.identifier %}checked="checked"{% endif %}
|
||||
data-toggle="radiocollapse" data-target="#payment_{{ p.provider.identifier }}" />
|
||||
<strong>{{ p.provider.verbose_name }}</strong>
|
||||
<strong>{{ p.provider.public_name }}</strong>
|
||||
</label>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</strong>
|
||||
</div>
|
||||
<h3 class="panel-title">
|
||||
{{ payment_provider.verbose_name }}
|
||||
{{ payment_provider.public_name }}
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
Reference in New Issue
Block a user