Stripe: Add refund ID to export

This commit is contained in:
Raphael Michel
2023-02-15 13:22:26 +01:00
parent 2ba9514b6f
commit 71e08012f5

View File

@@ -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)