Docs : SDK : resumeSubscription
resumeSubscription lets your users resume their subscription set to be canceled from cancelSubscription.
userbase.resumeSubscription().then(() => {
// user sucessfully resumed subscription
}).catch((e) => console.error(e))
Notes
-
Your user will not be able to resume a subscription that has already passed its cancelSubscriptionAt date. Your user must purchase a new subscription in this case.
Errors
- SubscriptionPlanNotSet
- StripeAccountNotConnected
- PaymentsDisabled
- SubscriptionAlreadyCanceled
- UserNotSignedIn
- TooManyRequests
- ServiceUnavailable