首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >条带疲倦毕业生定价api不返回金额

条带疲倦毕业生定价api不返回金额
EN

Stack Overflow用户
提问于 2020-09-02 08:44:53
回答 1查看 312关注 0票数 1

stripe pricing api没有提供tired -graduate定价金额的细节。

代码语言:javascript
复制
::Stripe::Price.retrieve('price_1HMjKfHHVdXnGelT')

下面是回应:

代码语言:javascript
复制
<Stripe::Price:0x3fed95f00ab0 id=price_1HMjKfHHVdXnss3> JSON: {
  "id": "price_1HMjKfHHVdXnGelT7fB47cEk",
  "object": "price",
  "active": true,
  "billing_scheme": "tiered",
  "created": 1599004569,
  "currency": "aud",
  "livemode": false,
  "lookup_key": null,
  "metadata": {},
  "nickname": null,
  "product": "prod_HwcZXLTSewzcj1",
  "recurring": {"aggregate_usage":null,"interval":"month","interval_count":1,"trial_period_days":null,"usage_type":"licensed"},
  "tiers_mode": "graduated",
  "transform_quantity": null,
  "type": "recurring",
  "unit_amount": null,
  "unit_amount_decimal": null
}

此映像是条带仪表板(开发人员控制台->网络选项卡)。上述接口缺少tiers密钥

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-09-03 09:25:48

条带doc中的expanding responses解决了这个问题。

代码语言:javascript
复制
Stripe::Price.retrieve({id:'price_1HMjKfHHVdXnGelT', expand: ['tiers']})         
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63697187

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档