Items bought through in-app purchases are generally non-refundable. However, there are special cases where a refund can be granted, although the process for these transactions are handled by Google and/or Apple.
If you'd wish to request a refund for an accidental purchase, please get in contact with your device's store: