diff options
author | Florian Dold <florian@dold.me> | 2023-04-25 23:58:12 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-04-25 23:58:17 +0200 |
commit | 0425b92dd7eb68818042740fe3751c9290738403 (patch) | |
tree | 27585e6cebd571532c031470ba013bba7e6a5809 /packages | |
parent | fd86791e42a0651968ae58969de178dc72929ffb (diff) |
wallet-core: adjust to breaking merchant API change
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay-merchant.ts | 5 |
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), |