diff --git a/src/pretix/plugins/paypal/payment.py b/src/pretix/plugins/paypal/payment.py index 20d37ea7d2..c9f12dba89 100644 --- a/src/pretix/plugins/paypal/payment.py +++ b/src/pretix/plugins/paypal/payment.py @@ -305,7 +305,7 @@ class Paypal(BasePaymentProvider): } }) if not pp_refund.success(): - raise PaymentException(_('Refunding the amount via PayPal failed: {}').format(refund.error)) + raise PaymentException(_('Refunding the amount via PayPal failed: {}').format(pp_refund.error)) else: sale = paypalrestsdk.Payment.find(refund.payment.info_data['id']) refund.payment.info = json.dumps(sale.to_dict())