If a foreign corporation makes a contract with a resident of South Dakota to be performed in whole or in part by either party in South Dakota, or if such foreign corporation commits a tort in whole or in part in South Dakota against a resident of South Dakota, such acts shall be deemed to be doing business in South Dakota by the foreign corporation and shall be deemed equivalent to the appointment by the foreign corporation of the secretary of state of the State of South Dakota and his successors to be its true and lawful attorney upon whom may be served all lawful process in any actions or proceedings against the foreign corporation arising from or growing out of such contract or tort. The making of the contract or the committing of the tort shall be deemed to be the agreement of the foreign corporation that any process against it which is so served upon the secretary of state shall be of the same legal force and effect as if served personally within the State of South Dakota.
SDCL 47-27-29