aboutsummaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2015-12-25 00:55:02 +0100
committerFlorian Dold <florian.dold@gmail.com>2015-12-25 00:55:02 +0100
commitc51f63567332825987e74d101ceea29735ab5b42 (patch)
treeec8687b31ced39110363b81b7567c2b27c7ee986 /extension
parent80f43b85c8e98031b26c927e58f04858f9683d2f (diff)
More error details, correct fulfillment redirection.
Diffstat (limited to 'extension')
-rw-r--r--extension/content_scripts/notify.js6
-rw-r--r--extension/content_scripts/notify.ts6
-rw-r--r--extension/manifest.json2
3 files changed, 9 insertions, 5 deletions
diff --git a/extension/content_scripts/notify.js b/extension/content_scripts/notify.js
index 676fd7653..fdd504cd7 100644
--- a/extension/content_scripts/notify.js
+++ b/extension/content_scripts/notify.js
@@ -68,6 +68,8 @@ document.addEventListener('taler-execute-payment', function (e) {
switch (r.status) {
case 200:
detail.success = true;
+ // Not supported by some browsers ...
+ detail.fulfillmentUrl = r.responseURL;
break;
case 301:
detail.success = true;
@@ -78,8 +80,8 @@ document.addEventListener('taler-execute-payment', function (e) {
detail.success = false;
break;
}
- console.log("status was:", r.status);
- console.log("detail:", JSON.stringify(detail));
+ detail.status = r.status;
+ detail.responseText = r.responseText;
document.dispatchEvent(new CustomEvent("taler-payment-result", { detail: detail }));
};
});
diff --git a/extension/content_scripts/notify.ts b/extension/content_scripts/notify.ts
index 45e9145fb..88dd0503d 100644
--- a/extension/content_scripts/notify.ts
+++ b/extension/content_scripts/notify.ts
@@ -76,6 +76,8 @@ document.addEventListener('taler-execute-payment', function(e: CustomEvent) {
switch (r.status) {
case 200:
detail.success = true;
+ // Not supported by some browsers ...
+ detail.fulfillmentUrl = (<any>r).responseURL;
break;
case 301:
detail.success = true;
@@ -86,8 +88,8 @@ document.addEventListener('taler-execute-payment', function(e: CustomEvent) {
detail.success = false;
break;
}
- console.log("status was:", r.status);
- console.log("detail:", JSON.stringify(detail));
+ detail.status = r.status;
+ detail.responseText = r.responseText;
document.dispatchEvent(new CustomEvent("taler-payment-result", {detail: detail}));
};
});
diff --git a/extension/manifest.json b/extension/manifest.json
index cc0ea58a7..ec1577ff8 100644
--- a/extension/manifest.json
+++ b/extension/manifest.json
@@ -2,7 +2,7 @@
"description": "Privacy preserving and transparent payments",
"manifest_version": 2,
"name": "Taler Wallet",
- "version": "0.1",
+ "version": "0.3",
"applications": {
"gecko": {