When calling subscription.cancel how do we know whether it’s cancelled vs active?
I’m using stripe and nextjs. How do I check whether user has already cancelled their subscription?
Subscription is still active and the stripe side is updated correctly (shows the cancellation date at the end of the period)
1 Reply
I'm using stripe with organization plugin, using org id as the referenceId
Sorry, I just got the answer to this:
the subscription object has a property called
cancelAtPeriodEnd
which you can check for when user initiated cancellation