American Express on Wednesday reported second-quarter earnings that beat analysts' expectations.
The financial services company's 37% jump in year-on-year profits was possible in part because of the sale of its Costco co-brand portfolio. This added $1.1 billion to net income, or $677 million after-tax. 
The gains came amid "substantial investments" in marketing and technology.
American Express ended its exclusive co-branding agreement with Costco, saying it couldn't reach a deal that made economic sense. It announced the sale to Citi in February.
The company posted $2.10 in adjusted earnings per share (EPS) for the second quarter, on revenues of $8.2 billion. 
It took a $151 million restructuring charge during the quarter. Excluding charges, EPS was $2.26.
Analysts had forecast that the company would report adjusted EPS of $1.95 on revenues of $8.46 billion, according to Bloomberg. 
Their concerns had ranged from the impact of the Costco loss to increased competition in the credit card lending space. Net income in US consumer services jumped 74% year-on-year to $1.1 billion. 
"With our completion of the Federal Reserve’s annual stress test, we now plan to increase the quarterly dividend by 10 percent to 32 cents per share and repurchase up to an additional $3.3 billion shares over the next four quarters," said American Express CEO Kenneth Chenault in the earnings statement
Chenault said 2016 results are expected to be at the "high end" of the range the company earlier projected; it forecast EPS of $5.19 to $5.49 per share for 2016.
The company's shares rose nearly 2% shortly after the earnings crossed.