I am integrating paytabs payment gateway in my flutter application. It opens a payment page in in app browser. When the transaction is completed, it redirects to a return_url. I want to redirect back to my app, so that I can do something after the payment has been processed.
How can this be accomplished?
I found a solution and it worked for me!
In flutter to open the paytabs transaction page. When the transaction is successful, it redirects me to a return_url. InAppWebView has a method
In this method, I checked if the returl_url == url and redirected to my app and closed the InAppWebView accordingly.