I don't know about Stripe, but PayPal refunds PayPal fees if you refund the customer. Net amount in and net amount out are the same.
Your information is outdated. PayPal keeps the fees now. https://www.theverge.com/2019/9/20/20876570/paypal-refund-fe...