我使用 Stripe 来管理订阅服务,并使用 Laravel Cashier 作为 Stripe 服务的 API 接口。
我有一种情况,我想为用户注册一项服务,然后偶尔将他们的订阅延长到原始订阅结束日期之后任意数量。Stripe 支持这一点,推荐的做法是使用“订阅更新”端点并传递一个新trial_end
值和一个prorate
false/null 值。
我想知道 Laravel Cashier 是否支持此功能。我试过了:
$user->subscription()->noProrate()->trialFor($newSubscriptionEndDate);
但是,我的条纹仪表板似乎没有显示更改注册。
这是我可以专门使用 Cashier 完成的事情,还是我需要使用原生 Stripe API?该StripeGateway
课程确实有许多与试验和结束日期有关的方法,但我在解读它们的预期功能时遇到了麻烦。谢谢。