command for confirmPay

This commit is contained in:
Florian Dold 2020-07-20 14:12:35 +05:30
parent 6169739525
commit e0ee0e39bb
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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 advancedCli
.subcommand("refresh", "force-refresh", { .subcommand("refresh", "force-refresh", {
help: "Force a refresh on a coin.", help: "Force a refresh on a coin.",