Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Commit

Permalink
Fix Javascript load problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Kleinert committed Jan 17, 2017
1 parent 83ff7f4 commit b7c6c5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/scripts/datatrans-lightbox/payment.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="//pilot.datatrans.biz/upp/payment/js/datatrans-1.0.2.js"></script>

<form id="paymentForm"
<?php foreach($this->params as $key => $value) : ?>
data-<?=$key?>="<?=$value?>"
<?php endforeach; ?>
</form>
<script type="text/javascript">
$(document).ready(function() {
Datatrans.startPayment({'form': '#paymentForm'});
$.getScript('//pilot.datatrans.biz/upp/payment/js/datatrans-1.0.2.js', function () {
Datatrans.startPayment({'form': '#paymentForm'});
});
});
</script>
</script>

0 comments on commit b7c6c5a

Please sign in to comment.