construct deposit URL correctly
This commit is contained in:
parent
93e9c3b6cf
commit
e9da70b5b8
@ -294,7 +294,7 @@ export async function trackDepositGroup(
|
||||
|
||||
for (const dp of depositPermissions) {
|
||||
const url = new URL(
|
||||
`/deposits/${wireHash}/${depositGroup.merchantPub}/${depositGroup.contractTermsHash}/${dp.coin_pub}`,
|
||||
`deposits/${wireHash}/${depositGroup.merchantPub}/${depositGroup.contractTermsHash}/${dp.coin_pub}`,
|
||||
dp.exchange_url,
|
||||
);
|
||||
const sig = await ws.cryptoApi.signTrackTransaction({
|
||||
|
@ -244,7 +244,7 @@ async function checkPayment(
|
||||
merchantBackend: MerchantBackendInfo,
|
||||
orderId: string,
|
||||
): Promise<CheckPaymentResponse> {
|
||||
const reqUrl = new URL(`/private/orders/${orderId}`, merchantBackend.baseUrl);
|
||||
const reqUrl = new URL(`private/orders/${orderId}`, merchantBackend.baseUrl);
|
||||
reqUrl.searchParams.set("order_id", orderId);
|
||||
const resp = await http.get(reqUrl.href, {
|
||||
headers: getMerchantAuthHeader(merchantBackend),
|
||||
|
Loading…
Reference in New Issue
Block a user