aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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": {