Fix issue with failed paypal payments

This commit is contained in:
Raphael Michel
2020-02-14 13:24:18 +01:00
parent f6db62d6ce
commit 755f3d53b6

View File

@@ -359,7 +359,7 @@ class Paypal(BasePaymentProvider):
return
if payment.state != 'approved':
payment_obj.fail(info=str(payment))
payment_obj.fail(info=payment)
logger.error('Invalid state: %s' % str(payment))
raise PaymentException(_('We were unable to process your payment. See below for details on how to '
'proceed.'))