Hi,
Which payment plugin do you use ? It's the payment plugin which provides the return URL to the website.
And normally, the plugin is supposed to include the current Itemid parameter to the after_end return URL so that when the customers returns to the website he is on the same menu item he was during his checkout.
If you're saying that you arrive on the homepage when you com back, it indicates that the Itemid parameter is missing in the after_end URL generated by the plugin, and thus there might be something to change in the code of the payment plugin.