With Big Tech and governments rolling out non-card payments solutions, Visa and Mastercard are making investments to defend their payments turf.