[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/02: wallet-core: adjust to breaking merchant API
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/02: wallet-core: adjust to breaking merchant API change |
Date: |
Tue, 25 Apr 2023 23:58:22 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 0425b92dd7eb68818042740fe3751c9290738403
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Apr 25 23:58:12 2023 +0200
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(-)
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),
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.