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
Reactions are currently unavailable
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