The surprise settlement between the online retail giant and the Trump administration happened just a few days into the trial over one of Amazon’s most important businesses. Amazon is paying a steep price—and taking a big win.

The FTC complaint alleges Amazon "tricked and trapped" consumers into signing up for Prime, then making it too complicated to cancel their membership.

The Federal Trade Commission sued Amazon in U.S. District Court in Seattle two years ago and has alleged more than a decade of legal violations.

Amazon will pay $1.5 billion to affected customers.