From c3fdbd291f3d74d35f524f96ded6e3c6c85712e0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 11 Jan 2023 14:33:35 +0100 Subject: wallet-core: introduce abortPay request This request supersedes the abortPayWithRefund request, as that's too implementation-focused and does not describe well what's happening. Also, abortPay can be forced to transition a transaction immediately into an "aborted" state (either from "paying" or "aborting"). --- packages/taler-wallet-core/src/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/wallet.ts') diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index f73cdac70..b29276a75 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -1163,7 +1163,7 @@ async function dispatchRequestInternal( const req = codecForConfirmPayRequest().decode(payload); return await confirmPay(ws, req.proposalId, req.sessionId); } - case WalletApiOperation.AbortFailedPayWithRefund: { + case WalletApiOperation.AbortPay: { const req = codecForAbortPayWithRefundRequest().decode(payload); await abortFailedPayWithRefund(ws, req.proposalId); return {}; -- cgit v1.2.3