Fixed subsequent issue with failed paypal payments

This commit is contained in:
Raphael Michel
2020-02-14 14:22:05 +01:00
parent 755f3d53b6
commit 162b7c1b52

View File

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