taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 062535770e1dabcdd2e1655f41ce01006a38af1a
parent 10efd87a8ebcddb75d784f111af534b9d6ea494b
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon,  1 May 2017 23:00:47 +0200

actually POST to /payback instead of just GETting it

Diffstat:
Msrc/wallet.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wallet.ts b/src/wallet.ts @@ -2156,7 +2156,7 @@ export class Wallet { let paybackRequest = await this.cryptoApi.createPaybackRequest(coin); let reqUrl = new URI("payback").absoluteTo(coin.exchangeBaseUrl); - let resp = await this.http.get(reqUrl.href()); + let resp = await this.http.postJson(reqUrl.href(), paybackRequest); if (resp.status != 200) { throw Error(); }