actually POST to /payback instead of just GETting it

This commit is contained in:
Florian Dold 2017-05-01 23:00:47 +02:00
parent 10efd87a8e
commit 062535770e
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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();
}