If it was in writing, a case could be made for “fraud in the inducement” under contract law. That would void the contract, and, since the person who “sold” the sexual service can’t get it back, he or she could ask to be indemnified in cash.
Except prostitutuion is illegal.