Pain is part of Aikido for uke's conditioning. If uke does not want the pain uke should tap out before the pain.
Here is a link to a discussion about pain in Aikido.
I have used sankyo to stop someone from punching me in the face. The pain was what stopped the attacker from continuing the fight.