#doublem

1 messages ยท Page 1 of 1 (latest)

earnest sedgeBOT
winged oar
#

Hi there

#

Huh strange. The metadata isn't persisted when the Subscription is updated?

#

Do you have an example Sub I can look at?

#

I don't think the metadata should be cleared unless it is explicitly cleared via updating the metadata itself

soft anchor
#

hi

winged oar
#

Thanks let me look

soft anchor
winged oar
#

Hmm wait I'm confused I'm not seeing metadata ever set on that Subscription

soft anchor
#

in signup the user will get the free plan

#

on

winged oar
#

Oh you are saying you set metadata on the Product object, not the Subscription object, and you want to check the Product?

soft anchor
#

later he can switch the plan using customer portal

#

but then the sub has no metadata

#

yes the metadata is on the product, which i put in a pricing table so it appears in the portal

winged oar
#

Okay so yeah then when a different Product is selected then the metadata for that Product would be available if you expanded the Product. I don't understand though -- wouldn't the Product that the customer changed to also have the relevant metadata that referenced the API calls allowed on the new Product?

soft anchor
#

let me create a small video

#

ok strange, it seems the api has the metatags but not the UI. maxAlerts is updated in my firebase DB. This happens using the stripe firebase extension which syncs the users subscription from stripe to firebase. As you can see maxAlerts changes in firebase but the UI shows it empty. as long as i got the value in firebase i am fine. https://www.loom.com/share/ba6ca5b0c0f74a8db2aec903ab0ce5cd?sid=1734047d-74a1-4f82-937a-66818254cab1

winged oar
#

In the Dashboard you are looking at the Subscription itself

#

There is a difference from setting metadata on the Product versus setting it on the Subscription

soft anchor
#

hmm ok. i just see that the sub in firebase has the maxAlerts value from an object named "product"

#

so the sub contains the info from the product it seems

winged oar
#

Correct

#

Subscriptions have Prices/Products associated with them

soft anchor
#

ah nice, then all is good ๐Ÿ™‚

winged oar
#

๐Ÿ‘

soft anchor
#

awesome fast support. thx