user behavior – Log in before confirming a transaction

My team and I are building a self-service web portal that allows users to make the transaction as they would in person at a bank…first, when the users visit the web portal they process the transaction but before they make a payment they are made to log in before taken to a checkout page. I was wondering if it was a good user experience logging in before confirming the transaction.