Mastercard beat Wall Street expectations for fourth-quarter profit on Thursday due to strong spending on travel, leisure and everyday essentials. The payment processor posted higher transaction volumes as consumers continued to spend despite economic uncertainty.

The profit beat came even as the company announced layoffs that will affect about 4% of its full-time workforce, according to CFO Sachin Mehra.

“Based on ⁠the recent ‍strategic review of our ‌business, ‌we expect to record a one-time restructuring ⁠charge ⁠in Q1 of approximately $200 million,” Mehra told analysts on a call.

Here are four reasons behind Mastercard’s stronger-than-expected profits:

Consumer spending holds up regardless economic uncertainities

Spending has largely held up even as concerns persist around US President Donald Trump’s trade policies, sticky inflation and a sluggish labour market. During the holiday quarter, shoppers also looked for deals to stretch their discretionary budgets, which helped boost transaction volumes for payment processors like Mastercard.

Adjusted profit came in at $4.76 per share, beating analysts’ average estimate of $4.25. Revenue rose to $8.81 billion, slightly above expectations of $8.78 billion according to data compiled by LSEG.

Transaction volumes rise across key areas

Mastercard’s gross dollar volume, the total value of transactions processed on its network rose 7% during the quarter. Cross-border spending was especially strong. The company reported a 14% jump in cross-border volumes, which tracks spending on cards used outside the country where they were issued. This growth shows a huge resilient travel demand and continued international spending.

High earners keep spending

Household spending remains resilient, with consumers prioritising essential purchases. At the same time, high-income earners have shown little sign of cutting back on discretionary spending. US banks have also seen credit card balances increase in the latest quarter, indicating that sustained borrowing demand even with interest rates remaining high.

Growth driven by high-margin services

Beyond card payments, Mastercard has been expanding into higher-margin services such as fraud prevention and cybersecurity tools. Revenue from the company’s value-added services and solutions segment increased 26% in the fourth quarter, continuing to outpace growth in its core payments network.

Earnings beat Wall Street estimates

Mastercard is the first of the major payment processors to report earnings this quarter. Rival Visa is set to report later in the day and American Express will release results early Friday.