不同金额的 Stripe 订阅计划 [英] Stripe Subscription Plans of Varying Amounts

查看:33
本文介绍了不同金额的 Stripe 订阅计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一家慈善机构制作捐赠表格,他们要求制定每月捐赠计划,用户可以在其中选择他们想要捐赠的任何金额.

我知道我可以制定个人计划(即,如果他们说每月捐款 5 美元、10 美元或 20 美元),我可以制定三种不同的计划并为用户订阅这些计划.有没有办法避免为每个不同的订阅金额制定新计划?

解决方案

Stripe 文档建议在订阅中使用 quantity 参数.

https://stripe.com/docs/guides/subscriptions<块引用>

不同的账单金额

有些用户需要完全灵活地计算帐单金额.为了例如,您可能有一个具有基本成本的概念订阅每月 10 美元,每个座位每月 5 美元.我们推荐通过创建基本计划来表示这些计费关系每月只需​​ 1 美元,甚至每月 0.01 美元.这让您可以使用quantity 参数可以非常灵活地为每个用户计费.在一个例子中以 10 美元的基本成本和 3 个 5 美元的席位,您可以每月使用 1 美元基本计划,并设置 quantity=25 以实现所需的总成本每月 25 美元.

I am working on a donation form for a charity and they have requested a monthly donation plan where the user can choose whatever amount they would like to give.

I know I can make individual plans (i.e. if they said monthly donations of $5, $10, or $20 dollars) I could make three different plans and subscribe users to them. Is there a way to avoid making new plans for every varying subscription amount?

解决方案

The Stripe documentation recommends using the quantity parameter on the subscription.

https://stripe.com/docs/guides/subscriptions

Varying billing amounts

Some users need full flexibility in computing billing amounts. For example, you might have a conceptual subscription that has a base cost of $10 per month, and a $5 per-seat cost each month. We recommend representing these billing relationships by creating a base plan that is only $1 per month, or even $0.01 per month. This lets you use quantity parameter to bill each user very flexibly. In an example with a $10 base cost and three $5 seats, you could use a $1 per month base plan, and set quantity=25 to achieve the desired total cost of $25 for the month.

这篇关于不同金额的 Stripe 订阅计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆