feat: payment verification and membership

This commit is contained in:
Jannat Patel
2023-08-11 19:45:12 +05:30
parent ea27acc683
commit 0c14a1ab4c
10 changed files with 327 additions and 51 deletions
+3 -11
View File
@@ -222,9 +222,9 @@
</a>
{% elif course.paid_course %}
<div class="btn btn-primary wide-button" id="buy-course" data-course="{{ course.name | urlencode }}">
<a class="btn btn-primary wide-button" href="/billing/{{ course.name | urlencode }}">
{{ _("Buy This Course") }}
</div>
</a>
{% elif show_start_learing_cta(course, membership) %}
<div class="btn btn-primary wide-button enroll-in-course" data-course="{{ course.name | urlencode }}">
@@ -257,9 +257,6 @@
{% endif %}
</div>
{% endmacro %}
@@ -280,9 +277,4 @@
{{ _("You have exceeded the maximum number of attempts allowed to appear for evaluations of this course.") }}
</p>
{% endif %}
{% endmacro %}
{%- block script %}
{{ super() }}
<script src="https://checkout.razorpay.com/v1/checkout.js"></script>
{% endblock %}
{% endmacro %}