The payment is completely handled by Apple or Google; therefore, to get a refund please contact Apple of Google.
Request a refund for apps or content that you bought from Apple: https://support.apple.com/en-us/HT204084
Request a refund for apps or content that you bought from Google: https://support.google.com/googleplay/answer/2479637?hl=en