It sounds like this would be a good use case for the additional fees SPI
Docs: https://www.wix.com/velo/reference/spis/getting-started/ecommerce-additional-fees
And here is some code I used to demo this functionality for reference: https://github.com/amandamartin-dev/fees-spi-demo