How to detect counterfeit money

The pot shop swiped my $50 bill with a pen the other day to check if it was real.