Mastercard Inc. is wading into the buy-now, pay-later movement as consumers adopt a more nuanced view of credit purchases.