Aditya Singh
Dec 26, 2018 · 1 min read
  1. Do document.getElementById('buttonId').click() . If the button doesn’t have an id then try to get the button by it’s classname using javascript and perform click() on it.
  2. Now you should see your popup. After the popup closes, you should receive a callback function from payu. Use this callback function to render a success or a cancel view based on the status of the transaction.
  3. Done
    Aditya Singh

    Written by

    Javascript develover | Coffee | 420 | Beer

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade