Did other people leave Amazon reviews about that battery working fine? Sometimes generic batteries don't work because their battery management circuitry is incompatible and whoever designed it either doesn't know or doesn't care.
But if other reviewers say it worked great for them, I guess it is the laptop. Weird though, since you would expect to see something a little burned or stinky around the time that the original battery stopped charging.