PayPal CEO and president Dan Schulman is retiring from the company and will leave at the end of this year.