aboutsummaryrefslogtreecommitdiff
path: root/src/headless/taler-wallet-cli.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-01 23:28:07 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-01 23:28:07 +0200
commit8fa744abe3f6e7d501aa1e165821b4cb115a99f0 (patch)
treeae72b761c9013646366d7e41da779a97bd088816 /src/headless/taler-wallet-cli.ts
parent255e2b0fe67dec33eb100715ee19f8efb80f6ed2 (diff)
downloadwallet-core-8fa744abe3f6e7d501aa1e165821b4cb115a99f0.tar.xz
check payment success
Diffstat (limited to 'src/headless/taler-wallet-cli.ts')
-rw-r--r--src/headless/taler-wallet-cli.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index 9336d69b0..f6a630e74 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -342,6 +342,10 @@ async function main() {
console.log("payment status after wallet payment:", paymentStatus2);
+ if (!paymentStatus.paid) {
+ throw Error("payment did not succeed");
+ }
+
myWallet.stop();
}