The injectable form of typhoid vaccine (trade name: Vactyph) has been in use for decades, is to be administered only once, can be used in children above 2 years and is approved by drug regulators in US and Britain.
The oral form (capsules) is a relatively new formulation, has to be taken three times (Day 1, 3 and 5), and is indicated for use in children over 6 years only. Moreover, it is not approved for use in US and Britain.
Due to extensive experience in terms of safety and efficacy, it is preferable to use the injectable form. There is no problem with G-6-PD deficiency.