diff options
Diffstat (limited to 'src/webex/wxBackend.ts')
-rw-r--r-- | src/webex/wxBackend.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts index c0b42a768..7bbba1759 100644 --- a/src/webex/wxBackend.ts +++ b/src/webex/wxBackend.ts @@ -416,11 +416,12 @@ async function talerPay(fields: any, url: string, tabId: number): Promise<string if (p.lastSessionSig) { nextUrl.addSearch("session_sig", p.lastSessionSig); } - return url; + return nextUrl.href(); }; if (fields.resource_url) { const p = await w.queryPaymentByFulfillmentUrl(fields.resource_url); + console.log("query for resource url", fields.resource_url, "result", p); if (p.found) { return goToPayment(p); } @@ -519,6 +520,9 @@ function handleHttpPayment(headerList: chrome.webRequest.HttpHeader[], url: stri if (fields.session_id) { uri.addSearch("sessionId", fields.session_id); } + if (fields.resource_url) { + uri.addSearch("resourceUrl", fields.resource_url); + } return { redirectUrl: uri.href() }; } |