You must have a Chinese visa. You cannot transit China without it, unless continuing onto a 3rd county. 72 or 144 hours transit without visa requires a 3rd country destination.
If you have a Chinese visa, there is a transit desk where you can secure your boarding pass, but it doesn't eliminate your having to go through Chinese process. The process is only slightly less than if you are originating.