scan the code for red packet