Custom Doc Type with Payment and Automated Receipt on success of Payment

We want to give a web form with payment integration with Paytm and shooting email/SMS for receipt of the success of payment. Help us to point already discussed similar solution requirements.