giftcard logic