aboutsummaryrefslogtreecommitdiff
path: root/testpages/testpage_merchant.html
blob: 0e9e784a075de99ce99c64585fb5c09b9be56f2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<script type="text/javascript">
  "use strict";
  function talerHandshake() {
    document.body.addEventListener('taler-wallet-present', function(e) {
      var x = document.getElementById('indicator');
      x.innerHTML = 'found!';
    });
    var evt = new Event('taler-checkout-probe');
    document.body.dispatchEvent(evt);
  }

  window.onload = (e) => talerHandshake();
</script>

Waiting for Taler wallet ... <span id='indicator'></span>