fixes
[wolnelektury.git] / src / club / templates / club / dummy_payment.html
1 {% extends request.session.from_app|yesno:"base/app.html,base/base.html" %}
2
3
4 {% block titleextra %}{% trans "Wolne Lektury need your help!" %}{% endblock %}
5
6
7 {% block body %}
8   <div class="white-box normal-text">
9
10     <h1>Testowa płatność</h1>
11
12     <p> {{ schedule.email }}</p>
13     <p> {{ schedule.amount }}</p>
14     <p> {{ schedule.plan.get_interval_display }}</p>
15
16     <!--form method="POST" action="">
17          {% csrf_token %}
18
19          {{ form.as_p }}
20          <button type='submit'>Zapłać</button>
21          </form-->
22
23
24     {% if request.GET.p == 'inline' %}
25       <div id="payu-widget"></div>
26     {% else %}
27       {% if request.GET.p == 'popup' %}
28         <form action="http://exampledomain.com/processOrder.php" method="post">
29           <button id="pay-button">Pay now</button>
30         </form>
31         <script
32             src="https://secure.payu.com/front/widget/js/payu-bootstrap.js"
33             pay-button="#pay-button"
34             merchant-pos-id="145227"
35             shop-name="Nazwa sklepu"
36             total-amount="9.99"
37             currency-code="PLN"
38             customer-language="pl"
39             store-card="true"
40             customer-email="email@exampledomain.com"
41             sig="250f5f53e465777b6fefb04f171a21b598ccceb2899fc9f229604ad529c69532">
42         </script>
43
44
45       {% else %}
46         <form method="POST" action="">
47           {% csrf_token %}
48
49           {{ form.as_p }}
50           <button type='submit'>Zapłać</button>
51         </form>
52       {% endif %}
53     {% endif %}
54
55   </div>
56
57   <script
58       src="https://secure.payu.com/front/widget/js/payu-bootstrap.js"
59       merchant-pos-id="145227"
60       shop-name="TEST"
61       total-amount="12345"
62       currency-code="PLN"
63       customer-language="en"
64       store-card="true"
65       payu-brand="false"
66       success-callback="test"
67       widget-mode="use"
68       customer-email="test@test.com"
69       sig="203ec8c4b9571ce6b4c03058f57264f04d06d00a86da19390d47ba1be4551578"
70   </script>
71
72 {% endblock %}