aboutsummaryrefslogtreecommitdiff
path: root/testpages/testpage_merchant.html
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2015-11-25 20:41:31 +0100
committerFlorian Dold <florian.dold@gmail.com>2015-11-25 20:46:36 +0100
commit7b6706bee3cbecc84b330672ecdb5764d7d68756 (patch)
tree5941b2d8a53296a4e64712068f82717205840a05 /testpages/testpage_merchant.html
downloadwallet-core-7b6706bee3cbecc84b330672ecdb5764d7d68756.tar.xz
Add skeleton for WebExtensions wallet
Diffstat (limited to 'testpages/testpage_merchant.html')
-rw-r--r--testpages/testpage_merchant.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/testpages/testpage_merchant.html b/testpages/testpage_merchant.html
new file mode 100644
index 000000000..1598cc046
--- /dev/null
+++ b/testpages/testpage_merchant.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<script type="text/javascript">
+ "use strict";
+ function talerHandshake() {
+ document.addEventListener('taler-wallet-present', function(e) {
+ var x = document.getElementById('indicator');
+ x.innerHTML = 'found!';
+ });
+ var evt = new Event('taler-checkout-probe');
+ document.dispatchEvent(evt);
+ }
+
+ window.onload = (e) => talerHandshake();
+</script>
+
+Waiting for Taler wallet ... <span id='indicator'></span>