COLUMBIA, S.C. — A company offering prescriptions for contacts and glasses based on online eye exams no longer offers the service to South Carolinians.

Opternative CEO and founder Aaron Dallek said his company stopped providing prescriptions in the state Thursday after the Legislature overrode Gov. Nikki Haley’s veto.

The House’s 98-1 vote immediately made such prescriptions illegal. The Senate voted 39-3 Wednesday to overturn the veto. South Carolina becomes at least the third state to pass a law banning the practice.

Chicago-based Opternative launched its online service in South Carolina and dozens of other states last summer.

Opternative offers $40 to $60 prescriptions within 24 hours for people ages 18 to 45 with a computer and smartphone.

Haley opposed the bill as stifling competition for low-cost eye care. Proponents argued it protects patients.