commit 0425b92dd7eb68818042740fe3751c9290738403
parent fd86791e42a0651968ae58969de178dc72929ffb
Author: Florian Dold <florian@dold.me>
Date: Tue, 25 Apr 2023 23:58:12 +0200
wallet-core: adjust to breaking merchant API change
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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),