you need to position the nipple in the centre of the funnel opening.
try putting some nipple cream. during the initial days of pumping, the nipples may not be used to the latching on and pumping, hence there may be some pain there. or for the time being, you can alternate the breasts, use right breast to feed after that pump the left. vice versa for the next feed.