A Spartanburg-based payday lending company is being sold to a Mexican company.

Advance America Cash Advance Centers said Wednesday it has entered into an agreement that gives Grupo Elektra all of its outstanding shares for $10.50 apiece That's a 33 percent premium to yesterday's closing stock price.

The value of the transaction is about $780 million, including Advance America's outstanding debt.

Advance America has about 14 locations in the Charleston region.

Grupo Elektra is a financial services company controlled by Mexican billionaire Ricardo Salinas that operates throughout Latin America. The Advance America deal is its first major investment in the U.S. financial services market.

Advance America says its headquarters will stay in Spartanburg and that senior management, including president Patrick O'Shaughnessy, will stay on in their roles.

Advance America was founded in 1997. It has about 2,600 centers in dozens of states, Canada and the United Kingdom.