DocumentationProFee as a product line
Fee as a product linePro
If your invoicing or accounting export ignores WooCommerce fee lines, the payment fee never reaches the invoice. Pro can write the fee as a product line instead, which every export reads. The amount charged does not change.
When you need it
Look at an invoice or an accounting export for an order that carried a fee. If the fee is there, you do not need this page. A WooCommerce fee line is what checkout writes and what most integrations read. If the fee is missing, your integration reads product lines only, and this setting is the fix.
Switching it on
General settings → Add the fee as → Product line. It is store-wide: every order the plugin writes a fee onto carries it this way. The other option, Fee line, is the default and what checkout has always done.
The managed product
On first use Pro creates one product, Payment fee, SKU pay4payment-fee:
- hidden from the catalogue and from search
- virtual, not purchasable through the cart
- coupons never apply to it
- editable by you — rename it, give it your own SKU, fill in the accounting fields your export wants — and recreated if it is ever deleted
The product is only the carrier. The line’s title, amount and tax class come from the fee settings every time, so editing the product’s price does nothing to what is charged.
What happens at checkout
Checkout still creates a fee line, because that is the only place core lets the fee be calculated. The plugin swaps it for a product line once the order exists. On the pay-for-order page and on admin orders the product line is written straight away. Either way the order carries one payment fee line, never two.
For exports
Product lines written this way carry the same order-item meta as fee lines,
_pay4payment_fee_gateway and _pay4payment_fee_source, plus one more,
_pay4payment_fee_taxable, because a product line has no fee-line tax flag of
its own. The order-item meta page
lists them.
If your invoicing plugin has been silently leaving the fee off invoices, this is the fix, and it is Pro.
See pricing