Restart Your iPad
It might sound like a cliche, but turning your iPad off and back on again does work, and it might fix your charging issues.
If you have an iPad with Face ID, you can restart it by pressing and holding the top button and one of the volume buttons for a few seconds.
If you have an iPad with Touch ID, you’ll only need to press and hold the top button for a few seconds.
Drag the slider to the right to turn off your iPad. Wait around 30 seconds, and then turn your iPad on again. Finally, try charging your iPad and see if that fixes the issue.