Catch PaymentException on paypal return view

This commit is contained in:
Raphael Michel
2017-11-01 21:28:19 +01:00
parent 10103b58f0
commit 184c91cfbc
2 changed files with 7 additions and 2 deletions

View File

@@ -230,7 +230,6 @@ class Paypal(BasePaymentProvider):
logger.error('Invalid state: %s' % str(payment))
raise PaymentException(_('We were unable to process your payment. See below for details on how to '
'proceed.'))
return
if order.status == Order.STATUS_PAID:
logger.warning('PayPal success event even though order is already marked as paid')