wallet-core: adjust to breaking merchant API change
This commit is contained in:
parent
fd86791e42
commit
0425b92dd7
@ -1553,7 +1553,10 @@ export async function processPurchasePay(
|
|||||||
ws.http.postJson(payAgainUrl, reqBody),
|
ws.http.postJson(payAgainUrl, reqBody),
|
||||||
);
|
);
|
||||||
logger.trace(`/paid response status: ${resp.status}`);
|
logger.trace(`/paid response status: ${resp.status}`);
|
||||||
if (resp.status !== 204) {
|
if (
|
||||||
|
resp.status !== HttpStatusCode.NoContent &&
|
||||||
|
resp.status != HttpStatusCode.Ok
|
||||||
|
) {
|
||||||
throw TalerError.fromDetail(
|
throw TalerError.fromDetail(
|
||||||
TalerErrorCode.WALLET_UNEXPECTED_REQUEST_ERROR,
|
TalerErrorCode.WALLET_UNEXPECTED_REQUEST_ERROR,
|
||||||
getHttpResponseErrorDetails(resp),
|
getHttpResponseErrorDetails(resp),
|
||||||
|
Loading…
Reference in New Issue
Block a user