Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vincent15000's avatar

Stripe / Cashier : evolutive subscription amount

Hello,

Once again, few experience with Stripe and Cashier.

Is it possible to configure an evolutive subscription amount according for example to a number of users using the application ?

I have seen on Stripe that it's possible to create a price according to tiers, like the example below.

Example

  • 1 to 3 users => price : 9.99 USD/user/month

  • 4 to 20 users => price : 14.99 USD/user/month

Here is a scenario :

1 - a company creates an account on the application and subscribes for the basic plan on April, 11., new payment on May, 11.

2 - he creates a second user on April, 20.

3 - he creates a third user on April, 22.

=> each time he creates a user, he has to pay for this user, how can the application update the subscription according to the number of users ? and how will Stripe trigger the payments (once per month ? once per user at different dates depending on which date the user has been created) ?

4 - then he creates a fourth user on April, 25. => screen notification, he has to upgrade to the premium plan

5 - he upgrades to the premium plan, the price per user is not the same

=> how is it possible to update the subscription plan ? I have seen with ->swap(), but what is donc exactly on Stripe side ?

Thanks for your help.

V

0 likes
1 reply
vincent15000's avatar
vincent15000
OP
Best Answer
Level 63

I have found all answers in the Stripe documentation on Laravel.

$user->subscription()->updateQuantity($newQuantity);
$user->subscription()->swap($newPrice);

And Stripe seems to generate a unique monthly invoice with calculations according to all changes.

Please or to participate in this conversation.