January 2020
Intermediate to advanced
530 pages
11h 11m
English
The startTimer() method is used to set a timer for 15 minutes in the payment window as shown here. The customer has 15 minutes to make the payment from their wallet to the merchant's wallet address before the request expires:
startTimer = () =>{if(this.state.tflag == true){this.intervalHandle = setInterval(this.tick,1000);this.intervalBalance = setInterval(this.bCheck,10000); let time = this.state.minutes; this.secondsRemaining = time * 60; this.setState({ tflag: false });}}
Let's understand the various components of the startTimer method:
Read now
Unlock full access