Walmart will soon begin accepting Apple Pay and Google Pay nationwide. The announcement reverses a longstanding position by the retailer.