Custom Web Integration - Bring a Popup to the Front
Display a pop-up as a visual reminder to the customer indicating that the payment is in progress.
You can bring a pop-up on the screen by calling the focus
method. This helps as a visual reminder to the customer that the payment is ongoing.
<script>var rp = new Razorpay(..);...</script>// after some time<span>Processing Payment...</span><button>Take me back to payment</button><script>$('button').click(function(){rp.focus(); // will bring popup to top})</script>
Is this integration guide useful?