PayPal has agreed to buy Xoom, a digital money transfer provider, for $890 million in cash. Following the announcement, Xoom shares jumped 22 percent in after-hours trade on the Nasdaq.