#ctodan
1 messages · Page 1 of 1 (latest)
Plan is the older field and Price is backward compatible with Plan so you'll see the same info in both, look in your event, you'll see it
gotcha yea i see it
but felt wierd that it was in an array
subscription.items[0].amount
is it guarenteed to be there?
but felt wierd that it was in an array
you can have multiple SubscriptionItems on a Subscription so expected to be an array.
Each item in the array being the Price, its quantity and amount.
is it guarenteed to be there?
can you elaborate?
aka there will always be soemthing in items?
yes, a Subscription will need items to be created so will be there
you should reference Prices, ignore Plans, they're deprecated/old
what Stripe docs/guide are you following?
every current one should point you to Prices
i was just looking at the actual event payload
Ah gotcha