Payment assistance

Hi, I have online payment system running on my app, when my client clicks pay, it goes to an external link for the card details. please advise how I can get the page to reroute back to my app once the payment has been successful.

Your assistance will be highly appreciated.