Mastercard said today it would buy Finicity in a deal valued at $825m, adding a fintech firm that helps banks share customer data with other financial firms. 

The world's second-largest payments processor also said Finicity's existing shareholders can get an earn-out of up to an additional $160m, if performance targets are met. 

Finicity will help Mastercard strengthen its open banking services, which allow customers to determine how and where third parties such as fintechs or other banks can access information to initiate payments on their behalf or provide money management services. 

Finicity has partnered with major financial institutions in the past including Wells Fargo, Fidelity Investments, Capital One Financial and JPMorgan Chase, according to the firm's website.

Mastercard also added it does not expect this deal to be a drag on its business for more than two years. 

The deal is expected to close by the end of the year.