This can happen in the following situations: You may not have Wi-Fi or internet access, or have 'Restrictions ON' to prevent others from making purchases on this iPad.
Restrictions are located in the general settings and should be disabled to allow in-app purchases.