You could display a login link on the receipt page, so users would have to click it to get to the login page, then login.
Or you could possibly use some coding skills (which I don't have) to automatically redirect to the login page instead of the receipt page.