aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-01-11 14:33:35 +0100
committerFlorian Dold <florian@dold.me>2023-01-11 14:33:35 +0100
commitc3fdbd291f3d74d35f524f96ded6e3c6c85712e0 (patch)
tree9501cdb65e534df2ed45ec078b534cc556e6bdda /packages/taler-wallet-core/src/wallet.ts
parentafd6f48b5782c1b9c2eb682c7c29cc131026bd95 (diff)
downloadwallet-core-c3fdbd291f3d74d35f524f96ded6e3c6c85712e0.tar.xz
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").
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts2
1 files changed, 1 insertions, 1 deletions
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<Op extends WalletApiOperation>(
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 {};