Late last year, Stripe found itself in a cash crunch, needing to raise billions of dollars for a tender offer at the same time that its breakneck rate of revenue growth was beginning to slow.