#Rob.Clayton

1 messages · Page 1 of 1 (latest)

cedar falconBOT
fervent urchin
sleek turret
#

items.data doesn't seem to work in python when accessing as a stripe object ... it seems to see items as a built in function, not an object/dictionary ...

fervent urchin
#

What doesn't work and the issue you're facing? Can you share the code example?

sleek turret
#

subscription.items = function

cedar falconBOT
runic raven
#

If you log stripe_subscription what would you see?

sleek turret
#

It's a stripe subscription object

#

It appears items is attached as a dictionary item to the object, not as a field.
Seems I have to reference subscription['items']

runic raven
#

Hmm I see.

sleek turret
#

actually ... thinking about it ... the issue is that the default items built in function is being replaced, I think

#

therefore I have to reference the objects field via the dictionary interface