Most gift certificates have something printed on them along the lines of "not valid for payment on account." I recently experienced the same dilemma at Best Buy - if I took their 48 month interest-free promo, I would not earn the miles by charging it on a mileage card.
If you do figure out a way to do this, please post it!!