The Setup
For the kickflip, you should have your back foot entirely on the tail of your board. Now your front foot can be put in a lot of numerous places. It all depends on where you prefer it to be and what you're comfortable with. But a couple guidelines for your front foot positioning are; it so be on the side of your board (left if your regular, right if your goofy), Later I will go on with various problems that might come up with bad foot placement.
The Pop
Pop like you would a normal Ollie. It's as easy as that.
Leveling It Out
You have to level out your Ollie as you get up to have the flip properly. Leveling it out is where you're at the peak of the Ollie or at the point when your board is 180 degrees.
The Flip
While you Ollie you're going to be sliding your foot up and flicking your ankle to spin the board. You need to slide your foot up and out, it's crucial to learn how to correctly pop and flip the board before even getting close to landing it.
The Catch
The catch is pretty simple once you seem the grip tape come around stomp down and roll away.
Troubleshooting
Problem: My board doesn't flip all the way
Solution: One of two things might be happening. Your either not Ollieing high enough for the board to fully spin or your not putting enough force into the flip itself, you have to work out everything with your kickflips to get it perfect. The Ollie needs to be a decent height, nothing extravagant but enough to get the full rotation. You also have to be putting enough force into the flick of your front foot.
Problem: I can get the rotation but I can't land it!
Solution: If you find that you can fully flip it but you always are to the side of the board then you might either be afraid of falling or you need to square your stance and keep the board under you. To conquer the fear of falling you need to reassure yourself that nothing bad will happen and you won't get hurt.
Tips
Make sure your shoulders are perpendicular to the board.
Always crouch not lean if needed. Leaning if cause improper flipping and/or catching.
You have to practice; this trick won't come to you in a day and be patient.