@Nour You can check every x seconds the status of the generated payment via your own API/script.
The best method is to set a callback url for this, to receive a callback from bunq when a bunq.me payment is processed.
You save this state to your own database and then retrieve it via your frontend so you can redirect to your own "payed" page.