aboutsummaryrefslogtreecommitdiff
path: root/src/operations/refund.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-09 16:37:46 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-09 16:37:46 +0530
commit26d961ad633027f50ee402b9a7e7fa383c2b33c3 (patch)
treecfaa7a80d4c38980ddb62bd39ea61b3f87916688 /src/operations/refund.ts
parentbf1b350d4410cfc7c3e9ae3a717343c9ef19625a (diff)
downloadwallet-core-26d961ad633027f50ee402b9a7e7fa383c2b33c3.tar.xz
support exchange API version 7:0:0
Diffstat (limited to 'src/operations/refund.ts')
-rw-r--r--src/operations/refund.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/operations/refund.ts b/src/operations/refund.ts
index 2fb3a2390..9d1c5308e 100644
--- a/src/operations/refund.ts
+++ b/src/operations/refund.ts
@@ -423,7 +423,7 @@ async function processPurchaseApplyRefundImpl(
console.log("sending refund permission", perm);
// FIXME: not correct once we support multiple exchanges per payment
const exchangeUrl = purchase.payReq.coins[0].exchange_url;
- const reqUrl = new URL("refund", exchangeUrl);
+ const reqUrl = new URL(`coins/${perm.coin_pub}/refund`, exchangeUrl);
const resp = await ws.http.postJson(reqUrl.href, req);
console.log("sent refund permission");
switch (resp.status) {