commit 81441752c56a061e2e6389b1e88f4eb6fd247999
parent 044c5f0afbb4ce5fbeab99be951192bf9d9c997a
Author: Florian Dold <dold@inria.fr>
Date: Sun, 20 Dec 2015 20:32:56 +0100
Execute page.
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/frontend/execute.php b/src/frontend/execute.php
@@ -36,7 +36,11 @@ document.addEventListener("DOMContentLoaded", function (e) {
document.dispatchEvent(eve);
});
document.addEventListener("taler-payment-result", function (e) {
+ if (!e.detail.success) {
+ alert("Payment failed\n" + JSON.strinfigy(e.detail));
+ }
console.log("finished payment");
+ document.getElementById("loading").innerHTML = "success!";
});
</script>
</head>
@@ -57,6 +61,6 @@ document.addEventListener("taler-payment-result", function (e) {
<section id="main">
<h1>Executing Payment ...</h1>
- <div class="loader">Loading...</div>
+ <div id="loading">Loading...</div>
</body>
</html>