How is cash on delivery procedure on flipkart?

I want to buy an hp 8GB pendrive from flipkart. I don’t have credit card. If i select cash on delivery option when buying, what are the remaining procedures? When should i pay? How am i going to receive the pendrive? Please explain.