If you're the merchant, you pay the affiliate for every sale they help you make.
It works using a revenue sharing model. If you're the affiliate, you get a commission every time someone purchases the item that you promote. If you're the merchant, you pay the affiliate for every sale they help you make.