Add fees based on the discount code with an order?
Either fixed or percentage fees can be set up based on the Discount code included in an order on this page here.
The calculation for the fee, if it's a percentage fee, can be based on the line item price for each line item or the order's total revenue.
