Mastercard’s second-quarter results are a good reminder that one of the biggest business transformations of the past 50 years — the shift from cash to digital payments — is still very much underway. The card network posted net income of $3.7 billion, or $4.07 per share, just edging past the $4.02 consensus estimate.