All the information you require is to be found on the *A website
here.
From my reading of the information you will need a transit visa since you are connecting to a country bordering ZA. (Kind of an odd rule that...
)
As for entering the country: transit without visa, when it is allowed, is for pax staying airside unless otherwise stated. ZA is not one of the exceptions.