wallet-core/testpages/testpage_merchant.html
2015-12-05 16:04:25 +01:00

17 lines
461 B
HTML

<!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>