#poacher2k
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
ie. we want to show our users information about their plan, with monthly price for all subscription items, even if they're on a grandfathered plan. should we fetch the subscription on demand from stripe, or store the actual prices in our database so we can look it up by the price ID?
I would recommend fetching the data from Stripe directly, having to sync (no matter what the 2 systems are) is always a hard thing to do and so many edge cases to take care of
but that been said we have a firebase extension that does that
right! that confirms my gut feeling
when fetching the subscription, the returned data contains the prices, but without the product name (https://stripe.com/docs/api/subscriptions/retrieve)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is there a way to expand the query to also include information about the product?
or should we do another API request for each product: "prod_id" ?
yes you can expand on product
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
gotcha! thank you so much @jagged sigil ! hope you have an absolute banger of a weekend when time comes ๐
thanks ๐