The exchange will pay $5.3 million to the attorney general's office and refund New York customers $16.77 million.