diff options
Diffstat (limited to 'taler-wallet-lib.ts')
-rw-r--r-- | taler-wallet-lib.ts | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/taler-wallet-lib.ts b/taler-wallet-lib.ts index aca5395..a5694a9 100644 --- a/taler-wallet-lib.ts +++ b/taler-wallet-lib.ts @@ -138,12 +138,6 @@ namespace taler { function handlePaymentResponse(resp: any) { - function subst(url: string, contractHash: string) { - url = url.replace("${H_contract}", contractHash); - url = url.replace("${$}", "$"); - return url; - } - /** * Handle a failed payment. * @@ -190,7 +184,7 @@ namespace taler { case 200: logVerbose && console.log("got success from pay_url"); callWallet("taler-payment-succeeded", {H_contract: resp.H_contract}, () => { - let nextUrl = subst(resp.contract.fulfillment_url, resp.H_contract); + let nextUrl = resp.contract.fulfillment_url; logVerbose && console.log("taler-payment-succeeded done, going to", nextUrl); window.location.href = nextUrl; window.location.reload(true); |