bornhack-website/shop/templates/epay_form.html

31 lines
988 B
HTML
Raw Normal View History

2016-05-19 09:19:51 +00:00
{% extends "shop_base.html" %}
2016-05-16 15:46:20 +00:00
{% load bootstrap3 %}
2016-05-29 14:00:22 +00:00
2016-05-19 09:19:51 +00:00
{% block shop_content %}
2016-05-16 15:44:33 +00:00
{% bootstrap_javascript jquery=1 %}
<script charset="UTF-8" src="https://ssl.ditonlinebetalingssystem.dk/integration/ewindow/paymentwindow.js" type="text/javascript"></script>
<script type="text/javascript">
paymentwindow = new PaymentWindow({
'merchantnumber': "{{ merchant_number }}",
'description': "{{ description }}",
'instantcapture': 1,
'ownreceipt': 1,
'amount': "{{ amount }}",
'currency': "DKK",
'orderid': "{{ order_id }}",
'accepturl': "{{ accept_url }}",
2016-05-17 05:06:25 +00:00
'cancelurl': "{{ cancel_url }}",
'callbackurl': "{{ callback_url }}",
2016-05-16 15:44:33 +00:00
'hash': "{{ epay_hash }}",
});
</script>
<input onclick="javascript: paymentwindow.open()" type="button" value="Go to payment">
<script type="text/javascript">
$( document ).ready(function() {
paymentwindow.open();
});
</script>
2016-05-29 14:00:22 +00:00
{% endblock shop_content %}