Self employed

Depends.   If it is included in the income like on the 1099NEC then you can expense the fee.  If you only report the net income amount you don't deduct the fee.