diff options
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) { |