mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Stripe: Fix crash in data shredder
This commit is contained in:
@@ -758,7 +758,7 @@ class StripeMethod(BasePaymentProvider):
|
|||||||
)
|
)
|
||||||
new = {k: v for k, v in d.items() if k in keys}
|
new = {k: v for k, v in d.items() if k in keys}
|
||||||
|
|
||||||
if d.get("latest_charge"):
|
if d.get("latest_charge") and not isinstance(d["latest_charge"], str):
|
||||||
keys = (
|
keys = (
|
||||||
'amount', 'amount_captured', 'amount_refunded', 'application', 'application_fee_amount',
|
'amount', 'amount_captured', 'amount_refunded', 'application', 'application_fee_amount',
|
||||||
'balance_transaction', 'captured', 'created', 'currency', 'description', 'destination',
|
'balance_transaction', 'captured', 'created', 'currency', 'description', 'destination',
|
||||||
|
|||||||
Reference in New Issue
Block a user