From 71e08012f5b78ef8719c8b828956e551da951c00 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 15 Feb 2023 13:22:26 +0100 Subject: [PATCH] Stripe: Add refund ID to export --- src/pretix/plugins/stripe/payment.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pretix/plugins/stripe/payment.py b/src/pretix/plugins/stripe/payment.py index baba09c44..8691f5211 100644 --- a/src/pretix/plugins/stripe/payment.py +++ b/src/pretix/plugins/stripe/payment.py @@ -566,6 +566,11 @@ class StripeMethod(BasePaymentProvider): "payment_method": payment.info_data.get("payment_method", None) } + def api_refund_details(self, refund: OrderRefund): + return { + "id": refund.info_data.get("id", None), + } + def payment_control_render(self, request, payment) -> str: if payment.info: payment_info = json.loads(payment.info)