feat: first stripe imp

This commit is contained in:
2026-05-06 19:27:00 +02:00
parent 1fdd316d0d
commit 9041ecd206
8 changed files with 83 additions and 2 deletions

View File

@@ -52,7 +52,10 @@
{% else %}
<div class="not-prose mt-8 p-4 bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700">
<p>{% trans "You don't have access to this course. Please purchase it to view the modules." %}</p>
<a href="{% url 'mock_purchase_course' course_id=page.id %}" class="mt-4 inline-block bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700 transition">{% trans "Purchase Course" %}</a>
<form action="{% url 'test_purchase' %}" method="post">
{% csrf_token %}
<button type="submit" class="mt-4 inline-block bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700 transition">{% trans "Purchase Course" %}</button>
</form>
</div>
{% endif %}
{% endblock content %}