mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Allow filtering by payment provider in order search
This commit is contained in:
@@ -50,6 +50,17 @@ class BasePaymentProvider:
|
||||
def __str__(self):
|
||||
return self.identifier
|
||||
|
||||
@property
|
||||
def is_meta(self) -> bool:
|
||||
"""
|
||||
Returns whether or whether not this payment provider is a "meta" payment provider that only
|
||||
works as a settings holder for other payment providers and should never be used directly. This
|
||||
is a trick to implement payment gateways with multiple payment methods but unified payment settings.
|
||||
Take a look at the built-in stripe provider to see how this might be used.
|
||||
By default, this returns ``False``.
|
||||
"""
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_enabled(self) -> bool:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user