check payment success

This commit is contained in:
Florian Dold 2019-08-01 23:28:07 +02:00
parent 255e2b0fe6
commit 8fa744abe3
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -342,6 +342,10 @@ async function main() {
console.log("payment status after wallet payment:", paymentStatus2); console.log("payment status after wallet payment:", paymentStatus2);
if (!paymentStatus.paid) {
throw Error("payment did not succeed");
}
myWallet.stop(); myWallet.stop();
} }