This commit is contained in:
Florian Dold 2020-08-12 21:11:54 +05:30
parent 44dcfb3790
commit 4891c4c7ce
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -470,6 +470,7 @@ async function processPurchaseQueryRefundImpl(
return;
}
const requestUrl = new URL(
`orders/${purchase.contractData.orderId}`,
purchase.contractData.merchantBaseUrl,
@ -479,6 +480,8 @@ async function processPurchaseQueryRefundImpl(
purchase.contractData.contractTermsHash,
);
logger.trace(`making refund request to ${requestUrl.href}`);
const request = await ws.http.get(requestUrl.href);
logger.trace("got json", JSON.stringify(await request.json(), undefined, 2));