In some regions, Amazon does not allow direct purchase of Prime with a gift card balance. Instead, use the "Gift of Prime" option. Use your gift card to pay and send the gift email to yourself or the intended recipient. The membership can be redeemed by the account that receives the Gift Prime email.