-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocs_sdk_resume-subscription.html
More file actions
39 lines (31 loc) · 1.09 KB
/
docs_sdk_resume-subscription.html
File metadata and controls
39 lines (31 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!-- Docs - SDK - resumeSubscription -->
<div class="section">
<h2><a href="/docs/">Docs</a> : <a href="/docs/sdk/">SDK</a> : resumeSubscription</h2>
<p>
<span class="font-semibold">resumeSubscription</span> lets your users resume their subscription set to be canceled from <a href="/docs/sdk/cancel-subscription/">cancelSubscription</a>.
</p>
<pre>
<code class="language-javascript">
userbase.resumeSubscription().then(() => {
// user sucessfully resumed subscription
}).catch((e) => console.error(e))
</code>
</pre>
<h3 id="params">Notes</h3>
<ul>
<li>
Your user will not be able to resume a subscription that has already passed its <span class="field">cancelSubscriptionAt</span> date. Your user must purchase a new subscription in this case.
</li>
</ul>
<h3 id="errors">Errors</h3>
<ul>
<li>SubscriptionPlanNotSet</li>
<li>StripeAccountNotConnected</li>
<li>PaymentsDisabled</li>
<li>SubscriptionAlreadyCanceled</li>
<li>UserNotSignedIn</li>
<li>TooManyRequests</li>
<li>ServiceUnavailable</li>
</ul>
</div>
<hr>