- Marketplace writes hp_vendor / hp_commission_rate / hp_commission_fee (no
underscore); the _hp_* keys never existed, so no commission was recorded
- Compute subtotal, vendor payout and commission the way
Marketplace::get_order_profit() does, honouring hp_vendor_include_taxes
- Store the vendor's user ID, the product's parent listing, and the platform
commission percentage (Marketplace stores the vendor share, e.g. 0.9)
Verify: phpunit-integration --filter WCOrdersInterceptorTest (4 tests);
WC unit 10 OK, integration 22 OK
PR: PR-012