diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-25 19:11:20 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-25 19:11:20 +0100 |
commit | adebfab94e76ee5d34a4f22d15fc085daef9ae00 (patch) | |
tree | 2dd0f233661fc32d2e5c2ee83750b3616d421359 /src/headless | |
parent | 54f7999c63292ca63f5f584c49bdef0b55627d71 (diff) |
fix and simplify coin selection
Diffstat (limited to 'src/headless')
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index 491f6f556..aad49932e 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -540,12 +540,18 @@ testCli .requiredOption("summary", ["-s", "--summary"], clk.STRING, { default: "Test Payment", }) + .requiredOption("merchant", ["-m", "--merchant"], clk.STRING, { + default: "https://backend.test.taler.net/", + }) + .requiredOption("merchantApiKey", ["-k", "--merchant-api-key"], clk.STRING, { + default: "sandbox", + }) .action(async args => { const cmdArgs = args.genPayUri; console.log("creating order"); const merchantBackend = new MerchantBackendConnection( - "https://backend.test.taler.net/", - "sandbox", + cmdArgs.merchant, + cmdArgs.merchantApiKey, ); const orderResp = await merchantBackend.createOrder( cmdArgs.amount, |