I was getting this error when trying to fetch products:
SERVICE_UNAVAILABLE: Error fetching products. An internal error occurred.
Nothing happened when trying to initiate a purchase.
After checking everything in the code and console, the fix was simple:
The device was logged out of Google Play.
Once I logged back into a Google account in the Play Store app, everything worked.
Just sharing in case it helps someone else save time