From cf01e04101d5013b23797cc7e77cbc8a11f82451 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 21 Nov 2018 11:24:37 +0100 Subject: [PATCH] PayPal: Improve log display --- src/pretix/plugins/paypal/signals.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pretix/plugins/paypal/signals.py b/src/pretix/plugins/paypal/signals.py index c77f2a3522..3cce4b4d4a 100644 --- a/src/pretix/plugins/paypal/signals.py +++ b/src/pretix/plugins/paypal/signals.py @@ -31,10 +31,13 @@ def pretixcontrol_logentry_display(sender, logentry, **kwargs): 'PAYMENT.SALE.DENIED': _('Payment denied.'), 'PAYMENT.SALE.REFUNDED': _('Payment refunded.'), 'PAYMENT.SALE.REVERSED': _('Payment reversed.'), + 'PAYMENT.SALE.PENDING': _('Payment pending.'), } if event_type in plains: text = plains[event_type] + else: + text = event_type if text: return _('PayPal reported an event: {}').format(text)