A comprehensive solution for electronic ticket