diff options
author | Florian Dold <florian@dold.me> | 2024-01-29 21:58:35 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-29 21:58:39 +0100 |
commit | 2c9c3d4cdf3f59eabbb47327f78966b781d77256 (patch) | |
tree | 17d36c45e67bd12e0beaaf4d5524423419ac2836 /packages/taler-wallet-core/src/operations/testing.ts | |
parent | 7b83d8f8dd220e04a26b33b03afc5f989cc5d1fb (diff) | |
download | wallet-core-2c9c3d4cdf3f59eabbb47327f78966b781d77256.tar.xz |
remove deprecated http client lib methods
Diffstat (limited to 'packages/taler-wallet-core/src/operations/testing.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/testing.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts index f2fb74bdb..92ce504fe 100644 --- a/packages/taler-wallet-core/src/operations/testing.ts +++ b/packages/taler-wallet-core/src/operations/testing.ts @@ -38,9 +38,7 @@ import { Logger, NotificationType, PreparePayResultType, - stringifyTalerUri, TalerCorebankApiClient, - TalerUriAction, TestPayArgs, TestPayResult, TransactionMajorState, @@ -200,7 +198,9 @@ async function createOrder( wire_transfer_deadline: { t_s: t }, }, }; - const resp = await http.postJson(reqUrl, orderReq, { + const resp = await http.fetch(reqUrl, { + method: "POST", + body: orderReq, headers: getMerchantAuthHeader(merchantBackend), }); const r = await readSuccessResponseJsonOrThrow(resp, codecForAny()); |