Skip to content

Commit

Permalink
Fixed the refunds issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arnav13081994 authored and jleclanche committed Apr 25, 2024
1 parent 0dd33fc commit cf2019e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion djstripe/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,12 +1025,13 @@ def _stripe_object_to_refunds(
return []

refund_objs = []

stripe_account = getattr(stripe_refunds, "stripe_account", None)
for refund_data in stripe_refunds.auto_paging_iter():
item, _ = target_cls._get_or_create_from_stripe_object(
refund_data,
refetch=False,
api_key=api_key,
stripe_account=stripe_account,
)
refund_objs.append(item)

Expand Down

0 comments on commit cf2019e

Please sign in to comment.