问题描述
我已经使用laravel收银台为任何产品创建了一个订阅,并且该订阅为期一个月,然后在订阅ID中,用户想要播种或升级其订阅,然后如何计算laravel收银台上现有订阅的未使用成本
我没有使用stripe/stripe-php,我正在使用laravel收银员
我们如何预览按比例分配?按比例计算的逻辑是什么?
Stripe的API具有支持预览订阅更改(更改价格,数量等)的即将到来的发票终结点,看起来收银员没有提供此功能.或其文档中至少没有听起来像实现此功能的东西.您可以联系他们,询问有关此功能的当前/将来支持.
您可以在文档中的此处中阅读所有有关Stripe的比例逻辑.>
I have created a subscription for any of product using laravel cashier and the subscription is for one month then in id of subscription user wants to sowngrade or upgrade his subscription then how can we calculate unused time on cost on existing subscription in laravel cashier.
I am not using stripe/stripe-php i am using laravel cashier
How we can preview prorations?orWhat is the logic of calculationg prorations?
While Stripe's API has an upcoming invoice endpoint that supports previewing changes to subscriptions (change prices, quantity, etc), it does not look like Cashier offers this functionality. Or at least nothing that sounds like an implementation of this feature is included in their documentation. You could contact them to ask about current/future support for this feature.
You can read all about Stripe's proration logic here in the docs.
这篇关于我们如何在laravel收银台中预览比例分配,或者在任何订阅中计算比例分配的逻辑是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!