Skip to content

Commit

Permalink
Passed missing required positional arg djstripe_owner_account
Browse files Browse the repository at this point in the history
  • Loading branch information
arnav13081994 committed Oct 3, 2023
1 parent 916a86e commit 5b8b9e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion djstripe/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,9 @@ def _get_or_retrieve(cls, id, stripe_account=None, **kwargs):
# (or if no livemode is specified, the default one altogether)
kwargs.setdefault(
"api_key",
djstripe_settings.get_default_api_key(livemode=kwargs.get("livemode")),
djstripe_settings.get_default_api_key(
livemode=kwargs.get("livemode"), djstripe_owner_account=None
),
)
data = cls.stripe_class.retrieve(
id=id, stripe_version=djstripe_settings.STRIPE_API_VERSION, **kwargs
Expand Down

0 comments on commit 5b8b9e5

Please sign in to comment.