API ReferenceIntegrationsKnowledge Base

Custom Web Integration - Bring a Popup to the Front

You can bring a popup to the forefront by calling the focus method. This helps as a visual reminder to the customer that the payment is ongoing.

Copy<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>