diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-09 16:37:46 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-09 16:37:46 +0530 |
commit | 26d961ad633027f50ee402b9a7e7fa383c2b33c3 (patch) | |
tree | cfaa7a80d4c38980ddb62bd39ea61b3f87916688 /src/operations/refund.ts | |
parent | bf1b350d4410cfc7c3e9ae3a717343c9ef19625a (diff) | |
download | wallet-core-26d961ad633027f50ee402b9a7e7fa383c2b33c3.tar.xz |
support exchange API version 7:0:0
Diffstat (limited to 'src/operations/refund.ts')
-rw-r--r-- | src/operations/refund.ts | 2 |
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) { |