Upvote:3
Done this trip many times.
As you get to the border, the bus company pulls over. You take your bags off with you, go through security and passport control. They check your visa etc.
Then you all pile back onto the bus, and continue on your way.
Usually takes about 25 min for a full bus, and is included in the travel time.