(2) On payment of such sum of money or such value, or both, as the case may be, to such officer, the person so admitting the commission of such offence, if in custody, shall be discharged, the property, if any, shall be released, and no further proceedings shall be taken against such person or property in respect of such offence.