Get control back from browser on phone

I have developed an ecommerce app for my firm using ionic. To complete the checkout with paypal express, I pass control to the browser so the customer can use a credit card or paypal to pay us,. Once they have completed the transaction, is there any way to tell the app it was successful or not. Is there any way for an active server page to give control back to ionic? Perhaps I need to spawn the page as a daughter page somehow.