Returns with dolibarr tpv

I’m looking for a way to make returns from the dolibarr tpv without entering the backend, but I can’t get it and takepos doesn’t have it either, someone has an idea of what code could be added to have this functionality.