diff options
author | Florian Dold <florian@dold.me> | 2023-09-15 17:04:44 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-09-15 17:04:44 +0200 |
commit | 0ff189d229b348422239670223b4944b42596f63 (patch) | |
tree | 149240e120c33588e1c079ffdd54369b05602d44 /packages/taler-wallet-core/src/operations | |
parent | a15eec55d3136b4f737c68ac41e3042624b8e25f (diff) |
wallet-core: fix tipping
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r-- | packages/taler-wallet-core/src/operations/reward.ts | 7 |
1 files changed, 5 insertions, 2 deletions
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}`); |