Ответ:

He asked her if he could buy those cards.

В косвенном вопросе порядок слов прямой; can меняется на could.