This sounds like indulgences where people could pay the church in medieval times to absolve them of their sins.