A person is guilty of solicitation of a minor if the person eighteen years of age or older:
The fact that an undercover operative or law enforcement officer was involved in the detection and investigation of an offense under this section does not constitute a defense to a prosecution under this section.
Consent to performing a prohibited sexual act by a minor or a minor's parent, guardian, or custodian, or mistake as to the minor's age is not a defense to a charge of violating this section.
A violation of this section is a Class 4 felony.
The court shall order an assessment pursuant to § 22-22-1.3 of any person convicted of violating this section.
Nothing contained in this section shall be construed to impose liability on a provider of an electronic communication service, an information service, a mobile service, including a commercial mobile service, a telecommunication service, an interactive computer service, or a cable service.
SDCL 22-24A-5