2016-05-10 15:55:54 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block 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 }}",
|
|
|
|
'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-10 15:55:54 +00:00
|
|
|
{% endblock content %}
|
|
|
|
|