What happens when checkout redirects to a hosted payment page?

A checkout page served by a payment provider.

Persist the cart and order reference before sending the shopper away. On return, show the current payment status and allow for a confirmation event arriving after the browser.