Unable to swap plans during trial
norbertjurga opened this issue · comments
- Cashier Paddle Version: 1.4.6
- Laravel Version: 8.73.1
- PHP Version: 7.4.7
- Database Driver & Version: MariaDB 10.4.13
Description:
Although documentation is quite clear that you should be able to do so and mantain the remaining trial:
If the user is on a trial, the trial period will be maintained. Additionally, if a "quantity" exists for the subscription, that quantity will also be maintained.
When using swap method during trial I'm getting LogicException: Cannot swap plans while on trial.
cashier-paddle/src/Subscription.php
Line 767 in 4137c72
Steps To Reproduce:
Try using $user->subscription('default')->swap(_paddle_id_);
for user on trial
Thanks for noting us. This indeed is not possible and is a limitation of Paddle. See: https://developer.paddle.com/api-reference/subscription-api/users/updateuser#usage-notes
I've sent in a PR to the docs to remove that section: laravel/docs#7455