PayU payments working.
[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>Płatność cykliczna przez PayU</h1>
11
12         <p>     {{ schedule.email }}</p>
13         <p>     {{ schedule.amount }}</p>
14         <p>     {{ schedule.plan.get_interval_display }}</p>
15
16         <form id="theform" method='POST'>
17                 {% csrf_token %}
18                 {{ form }}
19         </form>
20
21
22
23 <script>
24         function yeahwellwhatever(data) {
25                 $("#theform #id_token").val(data.value);
26                 $("#theform").submit()
27         }
28 </script>
29
30 <div id="payu-widget"></div>
31 <script
32      src="{{ pos.get_api_host }}/front/widget/js/payu-bootstrap.js"
33
34     {% for k, v in widget_args.items %}
35         {{ k }}="{{ v }}"
36     {% endfor %}
37
38     success-callback="yeahwellwhatever"
39     sig="{{ widget_sig }}">
40 </script>
41
42 </div>
43
44 {% endblock %}