The order details (product, shipping,
payment) should have been captured before returning to the site. After
the customer has logged in and paid via Paypal, you can set up an auto
return to your website.
Login to Paypal > Profile > My Selling Tools > Website preferences
Click on Update and specify the return URL and save.
(Link it to your Thank You Page)
Auto Return shortens the checkout flow and immediately brings your
buyers back to your website upon payment completion. To set up Auto
Return, you need to turn it on and enter the return URL that will be
used to redirect your buyers back to your site.