(If you haven't already seen
http://math.ucr.edu/home/baez/physics/Relativity/SR/TwinParadox/twin_paradox.html ... read it!)
If the two twins do not start at the same place at the same time, separate for a while, and then reunite so that they again are at the same place at the same time again, you don't have a twin paradox problem at all. You have an (uninteresting, once you realize what's going on) discussion about simultaneity conventions and how it is basically meaningless to speak of one twin being older or younger than the other if you can't set them side by side to compare their ages.
However, it's easy to fix that defect, and doing so leads to one of the more interesting variations of the twin paradox. Let's say that the two twins start at the same place at the same time, far from the heavy planet. Twin B remains there, floating in free fall in empty space, while twin A moves towards the planet, executes a tight hairpin hyperbola sport of orbit that takes him deep into the gravity well and then sends him back out in the opposite direction so eventually he meets up with twin B again. Thus they take different paths through space yet both are in free fall and moving inertially throughout.
Twin A will be younger when they meet again. This happens because both twins traveled through spacetime, starting at the separation event and ending at the reuniting event - but they traveled on different paths, and twin A's path was shorter than twin B's path. It's no different, (except that we're doing it with time in spacetime instead of distance in space) from what happens when two drivers in two cars leave from somewhere at the same time, arrive at their common destination at the same time, and their odometers show a different number of miles covered - they took different routes of different length.
From this you should conclude that the common explanation of non-the simpler gravity-free version of the twin paradox (one twin experienced acceleration, the other didn't, and that's what made the difference) is actually quite misleading. Even in that case, what's really going on is the stay-at-home twin took a longer path through spacetime, so more time elapsed on his path. The acceleration only comes into the picture because we needed to accelerate one or the other twins to set them on different paths through spacetime.