mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(premium): initial subscription implementation through paddle
This commit is contained in:
parent
26af2df720
commit
bd5b5c03fe
15 changed files with 1121 additions and 144 deletions
29
crates/premium/templates/cancel.html
Normal file
29
crates/premium/templates/cancel.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>Cancel Subscription - PluralKit Premium</title>
|
||||
<link rel="stylesheet" href="/static/stylesheet.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h2>PluralKit Premium</h2>
|
||||
|
||||
{% if subscription.is_cancellable() %}
|
||||
<h3>Cancel Subscription</h3>
|
||||
|
||||
<p>Are you sure you want to cancel subscription <strong>{{ subscription.subscription_id() }}</strong>?</p>
|
||||
<p>Your subscription will remain active until the end of the current billing period.</p>
|
||||
|
||||
<form action="/cancel" method="post">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}" />
|
||||
<input type="hidden" name="subscription_id" value="{{ subscription.subscription_id() }}" />
|
||||
<button type="submit">Yes, cancel subscription</button>
|
||||
<a href="/"><button type="button">No, go back</button></a>
|
||||
</form>
|
||||
{% else %}
|
||||
<p>This subscription (<strong>{{ subscription.subscription_id() }}</strong>) has already been canceled and will end on <strong>{{ subscription.next_renewal() }}</strong>.</p>
|
||||
|
||||
<a href="/"><button type="button">Go back</button></a>
|
||||
{% endif %}
|
||||
|
||||
<br/><br/>
|
||||
<p>for assistance please email us at <a href="mailto:billing@pluralkit.me">billing@pluralkit.me</a></p>
|
||||
</body>
|
||||
Loading…
Add table
Add a link
Reference in a new issue