forked from CGM_Public/pretix_original
Add PaymentProvider.public_name
This commit is contained in:
@@ -80,6 +80,16 @@ class BasePaymentProvider:
|
|||||||
"""
|
"""
|
||||||
raise NotImplementedError() # NOQA
|
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
|
@property
|
||||||
def identifier(self) -> str:
|
def identifier(self) -> str:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
data-parent="#payment_accordion"
|
data-parent="#payment_accordion"
|
||||||
{% if selected == p.provider.identifier %}checked="checked"{% endif %}
|
{% if selected == p.provider.identifier %}checked="checked"{% endif %}
|
||||||
data-toggle="radiocollapse" data-target="#payment_{{ p.provider.identifier }}" />
|
data-toggle="radiocollapse" data-target="#payment_{{ p.provider.identifier }}" />
|
||||||
<strong>{{ p.provider.verbose_name }}</strong>
|
<strong>{{ p.provider.public_name }}</strong>
|
||||||
</label>
|
</label>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
data-parent="#payment_accordion"
|
data-parent="#payment_accordion"
|
||||||
{% if selected == p.provider.identifier %}checked="checked"{% endif %}
|
{% if selected == p.provider.identifier %}checked="checked"{% endif %}
|
||||||
data-toggle="radiocollapse" data-target="#payment_{{ p.provider.identifier }}" />
|
data-toggle="radiocollapse" data-target="#payment_{{ p.provider.identifier }}" />
|
||||||
<strong>{{ p.provider.verbose_name }}</strong>
|
<strong>{{ p.provider.public_name }}</strong>
|
||||||
</label>
|
</label>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</strong>
|
</strong>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="panel-title">
|
<h3 class="panel-title">
|
||||||
{{ payment_provider.verbose_name }}
|
{{ payment_provider.public_name }}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|||||||
Reference in New Issue
Block a user