#BugKiller

1 messages · Page 1 of 1 (latest)

rustic oceanBOT
cyan pumice
#

Hi 👋

What do you mean reactivate? How is the susbcription created? How does it become inactive?

peak forge
#

I mean, I have a subscription with 7 day strial

#

monthly subscription for $27 for exampl

#

7 days trial

#

your subscription was cancelled, but user trying to reactivate it.

#

2 cases for question

  1. subscripotion cancelled in trail period ( like after 3 days), and later user reactivate cancelled one

  2. subscription cancelled after trial end , and late ruser reactivate cancelled oen

cyan pumice
#

Cancelation is a terminal state. Canceled Subscriptions cannot be reactivated

peak forge
#

I'm using python

#

you know about code?

#

right?

cyan pumice
#

Sure, that doesn't change the fact that canceled subscriptions cannot be reactivated. But if you have other questions feel free

peak forge
#
.....
subscription = stripe.Subscription.retrieve(purchase.subscription_id)
if subscription.cancel_at_period_end:
    subscription.cancel_at_period_end=False
    subscription.coupon = coupon.code if coupon else None
    subscription.save()
.....
#

I saw of this code written by former dev in company once user clicks reactivate subscription button

#

if subscription.cancel_at_period_end:

#

what this means?

#

in stripe

cyan pumice
#

You can read about this in our docs