diff options
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/dbless.ts | 5 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/operations/reward.ts | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/dbless.ts b/packages/taler-wallet-core/src/dbless.ts index d70eab888..4d2fa5cd4 100644 --- a/packages/taler-wallet-core/src/dbless.ts +++ b/packages/taler-wallet-core/src/dbless.ts @@ -276,7 +276,10 @@ export async function depositCoin(args: { merchant_pub: merchantPub, }; const url = new URL(`batch-deposit`, dp.exchange_url); - const httpResp = await http.fetch(url.href, { body: requestBody }); + const httpResp = await http.fetch(url.href, { + method: "POST", + body: requestBody, + }); await readSuccessResponseJsonOrThrow(httpResp, codecForBatchDepositSuccess()); } diff --git a/packages/taler-wallet-core/src/operations/reward.ts b/packages/taler-wallet-core/src/operations/reward.ts index ddcfb20ac..4e16d977d 100644 --- a/packages/taler-wallet-core/src/operations/reward.ts +++ b/packages/taler-wallet-core/src/operations/reward.ts @@ -304,13 +304,16 @@ export async function processTip( } const tipStatusUrl = new URL( - `tips/${tipRecord.merchantRewardId}/pickup`, + `rewards/${tipRecord.merchantRewardId}/pickup`, tipRecord.merchantBaseUrl, ); const req = { planchets: planchetsDetail }; logger.trace(`sending tip request: ${j2s(req)}`); - const merchantResp = await ws.http.postJson(tipStatusUrl.href, req); + const merchantResp = await ws.http.fetch(tipStatusUrl.href, { + method: "POST", + body: req, + }); logger.trace(`got tip response, status ${merchantResp.status}`); |