Most issues like this can be solved by:
- Fully powering off your device. Wait a few seconds. Turn it on again. Try again
- Sign out of the App Store or Google Play Store. Sign back in again. Try again.
If you're still experience problems, as Apple and Google are the ones that are responsible for purchasing, you should contact them to get help with your specific situation.