英文:
How to see the feature list of a product using the stripe API?
问题
我有一个Stripe账户,我在其中列出了一些产品。我注意到我也可以从Stripe控制台中列出产品的特性:
使用Stripe API,我想从产品详情中获取这个列表,并在我正在构建的UI中使用它。但我看不到是否可能实现这一点。
我查看了文档,但没有找到任何关于这个特性列表的信息。有人知道我尝试的是否可能吗?
如果我只是疏忽了文档,错过了一些内容,我深感抱歉。
顺便说一下,我正在使用Firebase的Stripe扩展,但我认为无论我如何设置后端,关于Stripe API的基本问题都是一样的。
英文:
I have a stripe account where I have listed a few products. I noticed I can also list the product features from the stripe console:

Using the stripe api, I would like to grab this list from the product details and use it in the UI I am building. But I cannot see if this is possible
I have looked at the docs and I have not found anything talking about this feature list. Does anyone know if what I am trying to do is possible?
I apologize if am just blind and missed the docs somehow.
btw, I am using the stripe extension for firebase, but I think my underlying question about the stripe API applies just the same, no matter how I set up my backend.
答案1
得分: 2
我在我的项目中遇到了相同的问题。
从我的研究来看,使用 Stripe API 无法获取功能列表。
所以我们可以使用 metadata 代替 feature list。
使用 Stripe API 确实可以获取 metadata。
如果有更好的想法,请分享一下。
英文:
I had a same problem on my project.
From my research, it is not possible to get feature list with stripe api.
So we can use metadata instead of feature list.
It is surely possible to get metadata with stripe api.
If anyone has a better idea, please share it.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论