diff --git a/src/pretix/plugins/paypal2/views.py b/src/pretix/plugins/paypal2/views.py index b0b420309..af446366e 100644 --- a/src/pretix/plugins/paypal2/views.py +++ b/src/pretix/plugins/paypal2/views.py @@ -240,13 +240,13 @@ def isu_return(request, *args, **kwargs): if response.result.tracking_id != request.session['payment_paypal_isu_tracking_id']: messages.error(request, _('An error occurred returning from PayPal: session parameter not matching. Please try again.')) logger.exception('PayPal2 - tracking_id not matching session.payment_paypal_isu_tracking_id') + elif request.GET.get("isEmailConfirmed") == "false": # Yes - literal! + messages.error( + request, + _('The e-mail address on your PayPal account has not yet been confirmed. You will need to do ' + 'this before you can start accepting payments.') + ) else: - if request.GET.get("isEmailConfirmed") == "false": # Yes - literal! - messages.warning( - request, - _('The e-mail address on your PayPal account has not yet been confirmed. You will need to do ' - 'this before you can start accepting payments.') - ) messages.success( request, _('Your PayPal account is now connected to pretix. You can change the settings in detail below.')