Upgrades
[wolnelektury.git] / src / club / templates / payu / rec_widget.html
1 <h3>Podaj dane karty pĹ‚atniczej</h3>
2 <div class="iframe">
3   <form id="theform" method='POST'>
4     {% csrf_token %}
5     {{ form }}
6   </form>
7
8   <script>
9    function paymentcallback(data) {
10        $("#theform #id_token").val(data.value);
11        $("#theform").submit()
12    }
13   </script>
14
15   <div id="payu-widget"></div>
16   <script
17       src="{{ pos.get_api_host }}/front/widget/js/payu-bootstrap.js"
18
19       {% for k, v in widget_args.items %}
20            {{ k }}="{{ v }}"
21       {% endfor %}
22
23       success-callback="paymentcallback"
24       sig="{{ widget_sig }}">
25   </script>
26 </div>