I used Microsoft gift card in game and before that I asked Zendesk if any of these (Xbox/Microsoft) can be used in game. They’ve said 99% for both, but this belongs to Microsoft. They can’t tell for sure, I need to ask them directly. But I would say yes, that would work either. If it can be applied in your account, then you’ll be fine as gift cards get taken first