PPv2: Revert format change of log entries

This commit is contained in:
Raphael Michel
2022-12-20 16:01:44 +01:00
parent 1238165e7a
commit eeb6e11934

View File

@@ -427,8 +427,8 @@ def webhook(request, *args, **kwargs):
return HttpResponse('Payment not found', status=200) return HttpResponse('Payment not found', status=200)
payment.order.log_action('pretix.plugins.paypal.event', data={ payment.order.log_action('pretix.plugins.paypal.event', data={
'event': event_json, **event_json,
'sale': sale.dict(), '_order_state': sale.dict(),
}) })
if payment.state == OrderPayment.PAYMENT_STATE_CONFIRMED and sale['status'] in ('PARTIALLY_REFUNDED', 'REFUNDED', 'COMPLETED'): if payment.state == OrderPayment.PAYMENT_STATE_CONFIRMED and sale['status'] in ('PARTIALLY_REFUNDED', 'REFUNDED', 'COMPLETED'):