JPMorgan Chase is negotiating with Apple to take over Goldman Sachs as its credit-card partner.