The last affiliate hop link clicked before the sale would determine who gets the referral credit and commission. I.e., a buyer's browser can have only one cookie set for your affiliate program at a time, and clicking a hop link always sets a cookie, so that would clobber any older referral cookie for your affiliate program in that buyer's browser.