The registrant accepts the contract when buying the domain; the registrar must include RAA and registry policy clauses.
When completing registration, the registrant checks an acceptance box. The contract must include, at minimum, the obligation to provide accurate data, submission to ICANN and registry policies, and consent to publish data in WHOIS [1]. The contract may be electronic and is governed by the law of the registrar's location or as specified.