Purchases are made through Apple and Google, so they handle refunds too: • iPhone or iPad: go to reportaproblem.apple.com and sign in with your Apple Account. • Android: open Google Play, tap your profile picture, then Payments & subscriptions > Budget & history, pick the purchase and request a refund.
If a child made a purchase without asking, request a refund the same way. To stop it happening again, turn on purchase approval in your device's settings: Screen Time on iPhone and iPad, or Parental controls in Google Play.