pay back in own coin

pay somebody back in their own coin

  (British & Australian old-fashioned)
to treat someone in the same bad way that they have treated you I decided to pay her back in her own coin and refuse to help her.
See also: back, coin, pay