Stripe 的自定义月度账单 Laravel
Custom Monthly Billing for Stripe Laravel
我必须尝试为 stripe 寻找定制的月度账单,但找不到。有人可以帮我为 stripe Laravel 实现这个吗?
基本上,我有一个库存业务,我想根据 space 他们在我的仓库中收取的费用每月向客户收费。
因此,当他们注册时,费用是 3.75 美元乘以他们订购的由我们履行的全职员工数量,再加上 12 美元乘以他们的订单总量。体积将通过每个 ftes 的数量乘以它们的每个体积来计算。 (体积以立方英尺为单位)
因此,如果他们订购 50 件 T 恤,并且每件 T 恤的体积为 0.5 英尺。那么手续费就是3.75 * 50 + 12 * 50 *.5
如何在 Stripe 包月服务中做到这一点?因为它只给我创建计划的选项,但我无法将这些计算放入该计划中。如果您认为有更好的方法通过使用其他库来实现它,请告诉我。
听起来像你想要的Stripe's metered billing feature:
With metered billing, you charge your customers based on their consumption of your service during the billing cycle, instead of explicitly setting quantities. For example, if you run an email SaaS business, you can record how many emails your customers send per month, then bill them for the total number at the end of the month.
Like other subscription models, metered billing is defined by the prices you create for your product or service. You must also record usage, and you can customize how to handle usage records.
我必须尝试为 stripe 寻找定制的月度账单,但找不到。有人可以帮我为 stripe Laravel 实现这个吗?
基本上,我有一个库存业务,我想根据 space 他们在我的仓库中收取的费用每月向客户收费。
因此,当他们注册时,费用是 3.75 美元乘以他们订购的由我们履行的全职员工数量,再加上 12 美元乘以他们的订单总量。体积将通过每个 ftes 的数量乘以它们的每个体积来计算。 (体积以立方英尺为单位)
因此,如果他们订购 50 件 T 恤,并且每件 T 恤的体积为 0.5 英尺。那么手续费就是3.75 * 50 + 12 * 50 *.5
如何在 Stripe 包月服务中做到这一点?因为它只给我创建计划的选项,但我无法将这些计算放入该计划中。如果您认为有更好的方法通过使用其他库来实现它,请告诉我。
听起来像你想要的Stripe's metered billing feature:
With metered billing, you charge your customers based on their consumption of your service during the billing cycle, instead of explicitly setting quantities. For example, if you run an email SaaS business, you can record how many emails your customers send per month, then bill them for the total number at the end of the month.
Like other subscription models, metered billing is defined by the prices you create for your product or service. You must also record usage, and you can customize how to handle usage records.