#king-subscription

1 messages · Page 1 of 1 (latest)

analog tendon
short glade
#

im using laravel cashier

analog tendon
short glade
#

Yes because they are totally new products and system we want to keep naming seperate for clerical purposes. Going forward any upgrade/downgrade of products will simply add remove prices

#

more soo i want to change the subscription instead of renewing them on the current subscription

#

so bassically turn subscription renewing off for legacy products and upon expiry (hopefully trigger a webhook) and i can progromatically create the new subscription from cashier

analog tendon
#

if you can identify these subscriptions using the legacy subscriptions in some fashion then you could

  • set cancel_at_period_end on those subscriptions(https://stripe.com/docs/billing/subscriptions/cancel#canceling), while taking note of the Subscription object ID sub_xxx or adding metadata to the objects to recognise later
  • listen to the customer.subscription.deleted webhook event
  • when you see the subscription that has just cancelled was one of those ones, you can kick off the process to create a new Subscription for a different product.
short glade
#

so basically when a subscription expires it triggers the customer.subscription.deleted

#

for ease if i archive a product does any subscriptions run until the end of their original expiry or will it expire immediately?

analog tendon
#

archiving a product has no effect on any existing subscriptions at all, it just prevents creating new subscriptions with the same product

#

for now this use case of moving from an old product to a new one is quite manual unfortunately

short glade
#

no problem and thanks for your help.

#

lastly where can i see an example of the customer.subscription.deleted response object

#

and is there a way to prevent renewal completely?

analog tendon