As a rule, if you return an item to Amazon within 30 days of purchase, you'll get a full refund.  Check out the possible reasons why your Amazon gift card is not working here.