diff --git a/doc/development/api/payment.rst b/doc/development/api/payment.rst index 0c6a31637..a1664edb2 100644 --- a/doc/development/api/payment.rst +++ b/doc/development/api/payment.rst @@ -62,6 +62,8 @@ The provider class .. autoattribute:: public_name + .. autoattribute:: confirm_button_name + .. autoattribute:: is_enabled .. autoattribute:: priority diff --git a/src/pretix/base/payment.py b/src/pretix/base/payment.py index 8512d6905..8de3e0fa8 100644 --- a/src/pretix/base/payment.py +++ b/src/pretix/base/payment.py @@ -191,6 +191,15 @@ class BasePaymentProvider: """ return self.verbose_name + @property + def confirm_button_name(self) -> str: + """ + A label for the "confirm" button on the last page before a payment is started. This + is **not** used in the regular checkout flow, but only if the payment method is selected + for an existing order later on. + """ + return _("Pay now") + @property def identifier(self) -> str: """ diff --git a/src/pretix/presale/templates/pretixpresale/event/order_pay_confirm.html b/src/pretix/presale/templates/pretixpresale/event/order_pay_confirm.html index 67c253d60..f2520f8d4 100644 --- a/src/pretix/presale/templates/pretixpresale/event/order_pay_confirm.html +++ b/src/pretix/presale/templates/pretixpresale/event/order_pay_confirm.html @@ -42,7 +42,7 @@