From e0ee0e39bbbc4726aa0cb177ed961aca2fadcd59 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 20 Jul 2020 14:12:35 +0530 Subject: [PATCH] command for confirmPay --- src/headless/taler-wallet-cli.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index 5637732b3..3f116670d 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -520,6 +520,18 @@ advancedCli }); }); +advancedCli + .subcommand("payConfirm", "pay-confirm", { + help: "Confirm payment proposed by a merchant.", + }) + .requiredArgument("proposalId", clk.STRING) + .maybeOption("sessionIdOverride", ["--session-id"], clk.STRING) + .action(async (args) => { + await withWallet(args, async (wallet) => { + wallet.confirmPay(args.payConfirm.proposalId, args.payConfirm.sessionIdOverride); + }); + }); + advancedCli .subcommand("refresh", "force-refresh", { help: "Force a refresh on a coin.",