check payment success
This commit is contained in:
parent
255e2b0fe6
commit
8fa744abe3
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user