If you can catch it on sale, I would probably replace vs repair. Before buying though I would get an estimate. If the cost is more than 50% of the cost, then you may want to replace. If it is less than repair may be the way to go. Have you tried different chargers/cables? I had an issue with an apple charger and it ended up being the charger. Replaced it and it charged with no issue. Also make sure that nothing has gotten up in the terminal on the tablet. Take some canned air and blow it out, I have that happen with my iPhone occasionally.