You can book train tickets online using confirmtkt website or App. After successful online payment and entering correct IRCTC credentials you will recieve e-ticket on sms and email.