forked from CGM_Public/pretix_original
PPv2: Revert format change of log entries
This commit is contained in:
@@ -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'):
|
||||||
|
|||||||
Reference in New Issue
Block a user