How to get response customer id and other things

How to get response customer id and other things

We are using hosted payment page via iframe on our portal just question is simple once user pay for plan so it redirects on thank you page of our portal so how we can get response there is just one parameter is coming hostedpage_id we want get full response so we update data in our customer table like zoho customer id plan active etc and much more