add server logic for PacketBuyCard and PacketSubscribe