The opt in happens after purchase. The client has to select yes or no for text messages and then is provided with a chance to unsubscribe within the first text message:
1st text message text: Welcome to NextStep Navigators, thank you for your purchase. We will now begin to text you the questionnaire you requested. To receive it respond ENROLL, to not receive anymore text messages respond STOP