From 0425b92dd7eb68818042740fe3751c9290738403 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 25 Apr 2023 23:58:12 +0200 Subject: wallet-core: adjust to breaking merchant API change --- packages/taler-wallet-core/src/operations/pay-merchant.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/operations') diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts index 52f7f990d..e6ade08aa 100644 --- a/packages/taler-wallet-core/src/operations/pay-merchant.ts +++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -1553,7 +1553,10 @@ export async function processPurchasePay( ws.http.postJson(payAgainUrl, reqBody), ); logger.trace(`/paid response status: ${resp.status}`); - if (resp.status !== 204) { + if ( + resp.status !== HttpStatusCode.NoContent && + resp.status != HttpStatusCode.Ok + ) { throw TalerError.fromDetail( TalerErrorCode.WALLET_UNEXPECTED_REQUEST_ERROR, getHttpResponseErrorDetails(resp), -- cgit v1.2.3