Shares of eBay (Nasdaq: EBAY) hit a 52-week high on Tuesday. Let's look at how it got here and whether clear skies are ahead.

How it got here
After hitting a 52-week high last month, eBay pushed to a fresh high on Tuesday as the company continued to see momentum sparked by recent bullish comments from an analyst.

Shares jumped 4.5% Monday to a six-year high as boutique investment bank and research firm Keefe, Bruyette & Woods, or KBW, initiated coverage on eBay with an "outperform" rating and $50 price target. KBW analyst Sanjay Sakhrani was particularly bullish on eBay's PayPal payments processing business, which has continued to march higher over the years as a percentage of total revenue and is the company's most promising growth catalyst.

Sakhrani said: "There is a consensus brewing that the next decade or so will see the proliferation of electronic commerce, largely aided by the increased prominence of the smartphone globally. We believe eBay is uniquely positioned to benefit from and capitalize on the convergence of commerce, payments and marketing."

eBay CEO John Donahoe recently said PayPal could soon become its largest division, overshadowing its namesake auction business. If that happens, eBay might want to consider a name change, just as Coinstar should, since Redbox is the majority of Coinstar's sales.

KBW sees a clear threat for traditional payment processing powerhouses Visa (NYSE: V) and MasterCard (NYSE: MA), even as PayPal processes payments through their networks. PayPal also processes transactions using electronic debits that result in lower costs for merchants.

How it stacks up
Let's see how eBay stacks up with its e-commerce and payment processing peers.

EBAY Chart

EBAY data by YCharts

Let's also compare some fundamental metrics for a deeper read.

Company

P/E (TTM)

Sales Growth (MRQ)

Net Margin (TTM)

ROE (TTM)

eBay 16.7 28.7% 26.8% 19.2%
Amazon.com (Nasdaq: AMZN) 182.9 33.8% 0.9% 7.7%
MercadoLibre (Nasdaq: MELI) 37.2 36.3% 25.7% 39.1%
Visa 28.0 14.8% 42.7% 15.4%
MasterCard 26.7 17.1% 29.0% 35.1%

Source: Reuters. TTM = trailing 12 months. MRQ = most recent quarter.

Amazon is eBay's closest marketplace competitor, while it doesn't compete with MercadoLibre in Latin America. eBay's frenemy-ship with Visa and MasterCard in the more profitable payments processing business is likely to intensify in the coming years.

What's next?
Payments really are the belle of the ball. The segment grew 31.8% last quarter, far outpacing the marketplace's 11.3%. Watch out, Visa and MasterCard. PayPal is eyeing your pie.

Add all of these companies to your watchlist to get the latest news and analysis.