diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-01 23:28:07 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-01 23:28:07 +0200 |
commit | 8fa744abe3f6e7d501aa1e165821b4cb115a99f0 (patch) | |
tree | ae72b761c9013646366d7e41da779a97bd088816 /src/headless/taler-wallet-cli.ts | |
parent | 255e2b0fe67dec33eb100715ee19f8efb80f6ed2 (diff) |
check payment success
Diffstat (limited to 'src/headless/taler-wallet-cli.ts')
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 4 |
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(); } |