Retaking a class online

I got a D in one of my major related courses this past semester but I am retaking an equivalent course online through SRJC this summer. What do I have to do to get credit for the summer class?

generally, it needs to be the same course at the same campus.