Skip to content

Subscription Items Not Accessible #504

Description

@jakepoz

We have code such as this:

 active_subs = stripe.Subscription.list(status="active", customer=stripe_customer_id)

 for sub in active_subs:
        items = sub.items
        for item in items:
          print(item)

However, this throws an exception on the for item in items line with a TypeError: 'builtin_function_or_method' object is not iterable

If you just print the active_subs response, you see that the fully populated items are returned in the response, and you can even read them the values from the PyCharm debugger.

We are on python 3.6, and stripe python 2.14.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions