Compare commits

..

2 Commits

Author SHA1 Message Date
Richard Schreiber
3c014a91b0 Fix missing CSS in seatingframe 2024-06-27 08:55:11 +02:00
Raphael Michel
9fe6916ab5 Item index: use internal category names again 2024-06-26 15:25:04 +02:00
6 changed files with 16 additions and 18 deletions

View File

@@ -48,7 +48,7 @@
{% if c %}
<tbody>
<tr class="sortable-disabled"><th colspan="9" scope="colgroup" class="text-muted">
{{ c.name }}{% if c.category_type != "normal" %} <span class="font-normal">({{ c.get_category_type_display }})</span>{% endif %}
{{ c.internal_name|default:c.name }}{% if c.category_type != "normal" %} <span class="font-normal">({{ c.get_category_type_display }})</span>{% endif %}
<a href="{% url "control:event.items.categories.edit" organizer=request.event.organizer.slug event=request.event.slug category=c.id %}" title="{% trans "Edit" %}"><span class="fa fa-edit fa-fw"></span></a>
</th></tr>
</tbody>

View File

@@ -38,7 +38,7 @@ class Paypal2App(AppConfig):
featured = True
picture = 'pretixplugins/paypal2/paypal_logo.svg'
description = _("Accept payments with your PayPal account. In addition to regular PayPal payments, you can now "
"also offer payments in a variety of local payment methods such as eps, iDEAL, and "
"also offer payments in a variety of local payment methods such as giropay, SOFORT, iDEAL and "
"many more to your customers - they don't even need a PayPal account. PayPal is one of the "
"most popular payment methods world-wide.")

View File

@@ -149,7 +149,7 @@ class PaypalSettingsHolder(BasePaymentProvider):
label=_('Alternative Payment Methods'),
help_text=_(
'In addition to payments through a PayPal account, you can also offer your customers the option '
'to pay with credit cards and other, local payment methods such as eps, iDEAL, and '
'to pay with credit cards and other, local payment methods such as SOFORT, giropay, iDEAL, and '
'many more - even when they do not have a PayPal account. Eligible payment methods will be '
'determined based on the shoppers location. For German merchants, this is the direct successor '
'of PayPal Plus.'

View File

@@ -38,7 +38,7 @@ class StripeApp(AppConfig):
featured = True
picture = 'pretixplugins/stripe/stripe_logo.svg'
description = _("Accept payments via Stripe, a globally popular payment service provider. Stripe supports "
"payments via credit cards as well as many local payment methods such as iDEAL, Alipay,"
"payments via credit cards as well as many local payment methods such as giropay, iDEAL, Alipay,"
"and many more.")
def ready(self):

View File

@@ -36,9 +36,7 @@ import json
import logging
import re
import urllib.parse
import zoneinfo
from collections import OrderedDict
from datetime import datetime
from decimal import Decimal
from json import JSONDecodeError
@@ -110,7 +108,7 @@ logger = logging.getLogger('pretix.plugins.stripe')
# - Bancontact: ✓
# - BLIK: ✗
# - EPS: ✓
# - giropay: (deprecated)
# - giropay:
# - iDEAL: ✓
# - P24: ✓
# - Sofort: ✓
@@ -337,6 +335,14 @@ class StripeSettingsHolder(BasePaymentProvider):
label=_('Credit card payments'),
required=False,
)),
('method_giropay',
forms.BooleanField(
label=_('giropay'),
disabled=self.event.currency != 'EUR',
help_text=_('Some payment methods might need to be enabled in the settings of your Stripe account '
'before they work properly.'),
required=False,
)),
('method_ideal',
forms.BooleanField(
label=_('iDEAL'),
@@ -1481,17 +1487,6 @@ class StripeGiropay(StripeRedirectWithAccountNamePaymentIntentMethod):
)
redirect_in_widget_allowed = False
def is_allowed(self, request: HttpRequest, total: Decimal=None) -> bool:
# Stripe<>giropay is shut down July 1st
return super().is_allowed(request, total) and now() < datetime(
2024, 7, 1, 0, 0, 0, tzinfo=zoneinfo.ZoneInfo("Europe/Berlin")
)
def order_change_allowed(self, order: Order, request: HttpRequest=None) -> bool:
return super().order_change_allowed(order, request) and now() < datetime(
2024, 7, 1, 0, 0, 0, tzinfo=zoneinfo.ZoneInfo("Europe/Berlin")
)
def _payment_intent_kwargs(self, request, payment):
return {
"payment_method_data": {
@@ -1565,6 +1560,7 @@ class StripeBancontact(StripeRedirectWithAccountNamePaymentIntentMethod):
return {
"payment_method_data": {
"type": "bancontact",
"giropay": {},
"billing_details": {
"name": request.session.get(f"payment_stripe_{self.method}_account") or gettext("unknown name")
},
@@ -1667,6 +1663,7 @@ class StripeEPS(StripeRedirectWithAccountNamePaymentIntentMethod):
return {
"payment_method_data": {
"type": "eps",
"giropay": {},
"billing_details": {
"name": request.session.get(f"payment_stripe_{self.method}_account") or gettext("unknown name")
},

View File

@@ -13,6 +13,7 @@
{% if css_theme %}
<link rel="stylesheet" type="text/css" href="{{ css_theme }}" />
{% endif %}
{{ html_head|safe }}
{% include "pretixpresale/fragment_js.html" %}
<meta name="referrer" content="origin">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">