PayPal Transaction fee

What is the best way to deduct the PayPal transaction fee from an affiliate’s commission?

Thanks