Redirect/open app after successful payment from bank

Im pretty new with app creation. i have a e-commerce website for which im creating the app. i used webview to load my URL which works fine. so when the users chooses a payment method , it gets redirected to banking app or to external url from the PSP and after that the success/failed payment page is opened in external browser. How can i redirect it to my app ? any samples or examples or documentations will be appreciated.

Redirect/open app after successful payment from bank
 
 
Q