Payment overhaul.
[wolnelektury.git] / src / club / templates / payu / rec_payment.html
1 {% extends request.session.from_app|yesno:"base/app.html,base/base.html" %}
2
3
4 {% block titleextra %}Towarzystwo Wolnych Lektur{% endblock %}
5
6
7 {% block body %}
8 <div class="white-box normal-text">
9
10         <h1>Wspierasz Wolne Lektury</h1>
11
12         <p>Zlecasz comiesięczną płatność w wysokości {{ schedule.amount}} zł. Dziękujemy!</p>
13
14         <form id="theform" method='POST'>
15                 {% csrf_token %}
16                 {{ form }}
17         </form>
18
19
20
21 <script>
22         function yeahwellwhatever(data) {
23                 $("#theform #id_token").val(data.value);
24                 $("#theform").submit()
25         }
26 </script>
27
28 <div id="payu-widget"></div>
29 <script
30      src="{{ pos.get_api_host }}/front/widget/js/payu-bootstrap.js"
31
32     {% for k, v in widget_args.items %}
33         {{ k }}="{{ v }}"
34     {% endfor %}
35
36     success-callback="yeahwellwhatever"
37     sig="{{ widget_sig }}">
38 </script>
39
40 </div>
41
42 {% endblock %}