How do I add shipping costs to affiliate commissions?

My physical products ship domestically and internationally. Orders have different tax amounts and shipping costs on each order. Since affiliates fulfill the orders and pay shipping costs at the time of the order, how do I include shipping costs with the product commissions when I send payments to affiliates?