Doing more stuff on placing order

Giving points to user = Amount/10
Sending mail
Refactored a bit of code