summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-04-25 23:58:12 +0200
committerFlorian Dold <florian@dold.me>2023-04-25 23:58:17 +0200
commit0425b92dd7eb68818042740fe3751c9290738403 (patch)
tree27585e6cebd571532c031470ba013bba7e6a5809 /packages/taler-wallet-core/src/operations
parentfd86791e42a0651968ae58969de178dc72929ffb (diff)
downloadwallet-core-0425b92dd7eb68818042740fe3751c9290738403.tar.gz
wallet-core-0425b92dd7eb68818042740fe3751c9290738403.tar.bz2
wallet-core-0425b92dd7eb68818042740fe3751c9290738403.zip
wallet-core: adjust to breaking merchant API change
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r--packages/taler-wallet-core/src/operations/pay-merchant.ts5
1 files changed, 4 insertions, 1 deletions
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),