diff --git a/doc/development/api/payment.rst b/doc/development/api/payment.rst index 46af36590d..0c6a31637a 100644 --- a/doc/development/api/payment.rst +++ b/doc/development/api/payment.rst @@ -106,6 +106,8 @@ The provider class .. automethod:: payment_control_render + .. automethod:: payment_control_render_short + .. automethod:: payment_refund_supported .. automethod:: payment_partial_refund_supported diff --git a/src/pretix/base/payment.py b/src/pretix/base/payment.py index 2da96dbc82..4c4700ed20 100644 --- a/src/pretix/base/payment.py +++ b/src/pretix/base/payment.py @@ -712,6 +712,18 @@ class BasePaymentProvider: """ return '' + def payment_control_render_short(self, payment: OrderPayment) -> str: + """ + Will be called if the *event administrator* performs an action on the payment. Should + return a very short version of the payment method. Usually, this should return e.g. + a transaction ID or account identifier, but no information on status, dates, etc. + + The default implementation falls back to payment_presa_elrender. + + :param order: The order object + """ + return self.payment_presale_render(payment) + def refund_control_render(self, request: HttpRequest, refund: OrderRefund) -> str: """ Will be called if the *event administrator* views the details of a refund. diff --git a/src/pretix/control/templates/pretixcontrol/order/refund_choose.html b/src/pretix/control/templates/pretixcontrol/order/refund_choose.html index 05c91a3559..ee77a4949f 100644 --- a/src/pretix/control/templates/pretixcontrol/order/refund_choose.html +++ b/src/pretix/control/templates/pretixcontrol/order/refund_choose.html @@ -17,16 +17,23 @@