aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-20 14:12:35 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-20 14:12:35 +0530
commite0ee0e39bbbc4726aa0cb177ed961aca2fadcd59 (patch)
tree464387f99a0a6686573086fb5e94e4d0b3db43a4
parent616973952533990aa19384dcc46b1ad47c9468a1 (diff)
command for confirmPay
-rw-r--r--src/headless/taler-wallet-cli.ts12
1 files changed, 12 insertions, 0 deletions
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
@@ -521,6 +521,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.",
})