From c992de341f440b2e25091c78640bf49143b784b0 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 14 Jun 2020 12:29:20 +0200 Subject: [PATCH] Revert "PayPal: Add additional protection against invalid sessions" This reverts commit 99e02bde368bdaac71ac62dd719bf6ed118c2c6d. --- src/pretix/plugins/paypal/payment.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pretix/plugins/paypal/payment.py b/src/pretix/plugins/paypal/payment.py index 08d5b30b35..9f0769b196 100644 --- a/src/pretix/plugins/paypal/payment.py +++ b/src/pretix/plugins/paypal/payment.py @@ -333,11 +333,6 @@ class Paypal(BasePaymentProvider): self.init_api() pp_payment = paypalrestsdk.Payment.find(request.session.get('payment_paypal_id')) - if payment.order.code not in pp_payment.transactions[0].description: - logger.error('Order code mismatch: Payment %s vs paypal trans %s' % (payment.id, str(pp_payment))) - raise PaymentException(_('We were unable to process your payment. See below for details on how to ' - 'proceed.')) - ReferencedPayPalObject.objects.get_or_create(order=payment.order, payment=payment, reference=pp_payment.id) if str(pp_payment.transactions[0].amount.total) != str(payment.amount) or pp_payment.transactions[0].amount.currency \ != self.event.currency: