#doublem
1 messages ยท Page 1 of 1 (latest)
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
hi
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Thanks let me look
while the product has the metadata https://dashboard.stripe.com/test/products/prod_OUE9WLNmghwzFS
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hmm wait I'm confused I'm not seeing metadata ever set on that Subscription
Oh you are saying you set metadata on the Product object, not the Subscription object, and you want to check the Product?
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
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?
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
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
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
ah nice, then all is good ๐
๐
awesome fast support. thx