load jquery on epay page
This commit is contained in:
parent
1c429d0ec2
commit
9dcb47cc3c
|
@ -1,27 +1,26 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<article>
|
{% bootstrap_javascript jquery=1 %}
|
||||||
<script charset="UTF-8" src="https://ssl.ditonlinebetalingssystem.dk/integration/ewindow/paymentwindow.js" type="text/javascript"></script>
|
<script charset="UTF-8" src="https://ssl.ditonlinebetalingssystem.dk/integration/ewindow/paymentwindow.js" type="text/javascript"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
paymentwindow = new PaymentWindow({
|
paymentwindow = new PaymentWindow({
|
||||||
'merchantnumber': "{{ merchant_number }}",
|
'merchantnumber': "{{ merchant_number }}",
|
||||||
'description': "{{ description }}",
|
'description': "{{ description }}",
|
||||||
'instantcapture': 1,
|
'instantcapture': 1,
|
||||||
'ownreceipt': 1,
|
'ownreceipt': 1,
|
||||||
'amount': "{{ amount }}",
|
'amount': "{{ amount }}",
|
||||||
'currency': "DKK",
|
'currency': "DKK",
|
||||||
'orderid': "{{ order_id }}",
|
'orderid': "{{ order_id }}",
|
||||||
'accepturl': "{{ accept_url }}",
|
'accepturl': "{{ accept_url }}",
|
||||||
'hash': "{{ epay_hash }}",
|
'hash': "{{ epay_hash }}",
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<input onclick="javascript: paymentwindow.open()" type="button" value="Go to payment">
|
<input onclick="javascript: paymentwindow.open()" type="button" value="Go to payment">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
paymentwindow.open();
|
paymentwindow.open();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</article>
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue