You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve noted down that the times-feature is highly requested and I will work on it as soon as possible.
Meanwhile you can implement a workaround yourself by
Implementing your own Plan Model which offers a times column -> I believe based on your code piece, that you followed the examples from the docs on how to load your plans from the database. Only thing that you has to change is to let your Plan model implement the \Laravel\Cashier\Plan\Contracts\Plan contract
Add a times column to your Subscription model
Listen to OrderPaymentPaid and increment your Subscription’s times column with $event->order->orderItems->first()->orderable->increment(’times’)
Instead of calling cashier::run from your console kernel directly, you have to create your own job/command which (1) queries Subscriptions, (2) checks if there plan’s times equals the subscription’s times
I can't find any reference on how to set the period limit.
This will monthly-bill the user endlessly:
related: laravel/cashier-mollie#115
any reference / workaround?
The text was updated successfully, but these errors were encountered: