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

fruitslice's avatar

cashier stripe subscription change name

I am using redirectToBillingPortal() in which the user can change the subscription plan, that works fine as it does change stripe_price but it does not change the name assigned, looking at the forums the name is not supposed to update; but then how are you supposed to distinguish between subscription tiers with e.g. subscribed('tier2')?

I can imagine a few ways, but would like to consider what the proper way to do this might be:

  1. intercept "customer.subscription.updated" event and update subscriptions name of that user (interfering with a managed cashier table feels odd)
  2. write a custom wrapper that checks stripe_price and maps that to the plan (lose access to subscribed() method)

Both seem like it's definitely the wrong way of achieving this, but how else would I do this and retain subscribed('name') functionality to check pricing tiers?

Thanks!

0 likes
0 replies

Please or to participate in this conversation.