The best way to get a refund - use the store where you have purchased the subscription.
Please, check out the official guide: https://support.apple.com/en-us/HT204084
Please, check out the official guide: https://support.google.com/googleplay/answer/2479637?hl=en