Implement parts of the ET API

This commit is contained in:
Skia
2016-07-24 18:26:03 +02:00
parent 0ecb78a101
commit d837b624e2
4 changed files with 71 additions and 10 deletions

View File

@ -31,7 +31,6 @@
<p><strong>{% trans %}Total: {% endtrans %}{{ "%0.2f"|format(basket_total) }} €</strong></p>
<form method="post" action="{{ url('eboutic:command') }}">
{% csrf_token %}
<input type="hidden" name="action" value="ask_payment">
<input type="submit" value="{% trans %}Proceed to command{% endtrans %}" />
</form>
</div>

View File

@ -23,9 +23,10 @@
{% endfor %}
<tbody>
</table>
<form method="post" action="{{ url('eboutic:command') }}">
{% csrf_token %}
<input type="hidden" name="action" value="pay_with_credit_card">
<form method="post" action="{{ settings.SITH_EBOUTIC_ET_URL }}">
{% for (field_name,field_value) in et_request.items() -%}
<input type="hidden" name="{{ field_name }}" value="{{ field_value }}">
{% endfor %}
<input type="submit" value="{% trans %}Pay with credit card{% endtrans %}" />
</form>
<form method="post" action="{{ url('eboutic:pay_with_sith') }}">