World Series of Poker champ Greg Raymer -- aka "FossilMan" -- won't rot behind bars for allegedly soliciting a female prostitute in North Carolina back in March ... he paid his debt to society another way.
As we reported, 49-year-old Raymer -- who's married -- was busted at a Wake Forest hotel during a sting operation, and was subsequently charged with soliciting a hooker.
According to the court documents, obtained by TMZ, officials believe Raymer intended to commit a sexual act that is described as an "abominable and detestable crime against nature."
The document does not specify which "abominable and detestable" sex act he allegedly had in mind, so, you can let your imaginations run wild with that one.
But good news for Raymer ... both charges have been dismissed ... after the man successfully completed 75 hours of community service at a local non-profit.
According to official documents, Raymer -- whose total tournament winnings exceed $7.2 million -- also underwent a mental health assessment.
Not the best hand. But not the worst either.