Ripple bought MoneyGram's stock at $4.10 per share, representing a premium of about 183% to its Monday closing price. The partnership will initially be for two years, MoneyGram said.

Shares of MoneyGram surged about 77% to $2.56 after the closing bell.

Ripple may also buy additional common stock or warrants for up to $20 million at a minimum price of $4.10 per share, MoneyGram said.

The partnership will focus on Ripple's xRapid, a platform for cross-border payments that uses XRP, a virtual currency powered by blockchain to send and receive currencies.

"Through Ripple's xRapid product, we will have the ability to instantly settle funds from U.S. dollars to destination currencies on a 24/7 basis, which has the potential to revolutionize our operations and dramatically streamline our global liquidity management," MoneyGram Chief Executive Officer Alex Holmes said in a statement.

(Reporting by Soundarya J in Bengaluru; Editing by Maju Samuel)