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 wanted to change the subscription count of my customers at the end of the cycle.
So basically if a customer has 10 subscriptions and wants to downgrade to 7, I would like to update the subscription count at the beginning of the next subscription cycle.
Right now I did not find a way to do this. I could only manage to make the billing happen at the beginning of the next cycle instead of restarting the cycle(which is part of what I want), but then the subscription count is changed immediately, so my customer would be paying for 10 subscriptions while only having access to seven.
I could not find a way to do this, if there is, please let me know.
If there is no way of doing this, I thought the way to implement it could be to create a new nullable column called next_quantity or something like that, which would specify how many subscriptions will there be in the next cycle. Then create a new function updateQuantityNextCycle that would set this new field and create a new order_item inline with the new quantity.
This approach is very similar to the one that is currently taken with swapNextCycle().
Thank you very much for your time and attention,
Pablo
The text was updated successfully, but these errors were encountered:
Excellent question and the approach you mentioned is valid. This is not supported out of the box on this version. We're adding it to the list for the next major release. Meanwhile, feel free to send in a PR. Locally, you could add the column and override the model(s).
Hi,
I wanted to change the subscription count of my customers at the end of the cycle.
So basically if a customer has 10 subscriptions and wants to downgrade to 7, I would like to update the subscription count at the beginning of the next subscription cycle.
Right now I did not find a way to do this. I could only manage to make the billing happen at the beginning of the next cycle instead of restarting the cycle(which is part of what I want), but then the subscription count is changed immediately, so my customer would be paying for 10 subscriptions while only having access to seven.
I could not find a way to do this, if there is, please let me know.
If there is no way of doing this, I thought the way to implement it could be to create a new nullable column called next_quantity or something like that, which would specify how many subscriptions will there be in the next cycle. Then create a new function updateQuantityNextCycle that would set this new field and create a new order_item inline with the new quantity.
This approach is very similar to the one that is currently taken with swapNextCycle().
Thank you very much for your time and attention,
Pablo
The text was updated successfully, but these errors were encountered: