gpt4 book ai didi

stripe-payments - Stripe 疲倦的毕业生定价 api 不返回金额

转载 作者:行者123 更新时间:2023-12-05 09:08:15 28 4
gpt4 key购买 nike

stripe pricing api 不提供 tired -graduate 定价金额的详细信息。

::Stripe::Price.retrieve('price_1HMjKfHHVdXnGelT')

这是回复:

<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
}

此图像是 Stripe 仪表板(开发人员控制台 -> 网络选项卡)。上面的 api 中缺少 tiers

enter image description here

最佳答案

扩展响应 in stripe doc解决了这个问题。

Stripe::Price.retrieve({id:'price_1HMjKfHHVdXnGelT', expand: ['tiers']})         

关于stripe-payments - Stripe 疲倦的毕业生定价 api 不返回金额,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63697187/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com