Add PaymentProvider.public_name

This commit is contained in:
Raphael Michel
2017-06-29 11:44:27 +02:00
parent 9007501d81
commit d5d1fcf331
4 changed files with 13 additions and 3 deletions

View File

@@ -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:
"""