Toast sold its shares at $40 after having initially planned to offer the stock at between $30 and $33 per share, targeting a raise of about $717 million.