EBay said Monday that it will pay $2.4 billion for GSI Commerce, which operates websites for retailers like Toys R…