Shopify expanded its share buyback program to $5 billion, citing strong cash flow and confidence in its business outlook.