Mastercard’s CEO noted weakening consumer sentiment but said “the fundamentals that support consumer spending have been solid.”