laravel / cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

Home Page:https://laravel.com/docs/cashier-paddle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

throw new LogicException("Cannot $action while on trial.");

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

Screenshot 2021-11-23 at 12 30 00

I've sent in a PR to the docs to remove that section: laravel/docs#7455