DETROIT — General Motors CFO Dhivya Suryadevara, who played key roles in the automaker’s selloff of Opel, purchase of Cruise Automation and 2018 restructuring plan, is quitting to take the top finance job at Stripe, a San Francisco online payments processor that has become one of the world’s most valuable tech startups.