Configure PayPal integration and cart checkout error display
This commit is contained in:
1 parent
62065828e1
commit
cf07fc5d9b
98 files changed
+1430
-281
No files matched your search
@@ -2,18 +2,12 @@
|
||||
{% block title %}{{ chapter.title }} · SLUMP X LAND{% endblock %}
|
||||
{% block content %}
|
||||
<main class="section article theme-shop">
|
||||
<p class="kicker">Chapter {{ chapter.number }} · Paid chapter</p><h1>{{ chapter.title|slx_brand }}</h1>
|
||||
<p class="kicker">#{{ chapter.number|stringformat:"03d" }} · Rolling archive</p>
|
||||
<h1>{{ chapter.title|slx_brand }}</h1>
|
||||
{% if chapter.cover %}<img class="book-cover" src="{{ chapter.cover.url }}" alt="">{% endif %}
|
||||
{% if chapter.summary %}<p>{{ chapter.summary|slx_brand }}</p>{% endif %}
|
||||
<p><strong>${{ chapter.price_usd|floatformat:2 }} USD</strong> · One-time purchase</p>
|
||||
{% if paypal_ready %}
|
||||
{% if user.is_authenticated %}
|
||||
<form method="post" action="{% url 'paypal-start' chapter.number %}">{% csrf_token %}
|
||||
<button class="cta" type="submit">Continue to PayPal →</button></form>
|
||||
<p>PayPal will show the payment methods available to you.</p>
|
||||
{% else %}<a class="cta" href="{% url 'fan-login' %}?next={% url 'chapter' chapter.number %}">Sign in to buy</a>
|
||||
<p>New to SLX? <a href="{% url 'fan-signup' %}">Create a reader account</a>.</p>{% endif %}
|
||||
{% else %}<p>Online checkout is currently unavailable.</p>{% endif %}
|
||||
<p><a href="{% url 'chapter-discussion' chapter.number %}">Fan discussion</a> · <a href="{% url 'chapters' %}">All chapters</a></p>
|
||||
<p>The newest three chapters are free. Sign in with an active Slump X Land Monthly membership to read the full archive.</p>
|
||||
<div class="actions">{% include 'chapter-access-actions.html' %}{% if not user.is_authenticated %}<a class="cta secondary" href="{% url 'fan-signup' %}">Create an account</a><a href="{% url 'fan-login' %}?next={% url 'chapter' chapter.number %}">Sign in</a>{% endif %}</div>
|
||||
<p><a href="{% url 'chapters' %}">See the latest free chapters →</a></p>
|
||||
</main>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user