Unity IAP not working

Hello!
Products and IAPs registered in Google Developers Consoles were successfully initialized.
(OnInitialized: PASS)

However, the BuyProduct function is not responding in the terminal environment.
After reviewing Logcat , the following log is printed.

I/Unity: BuyProductID: FAIL. Exception during purchase. System.MissingMethodException: Method not found: ‘UnityEngine.VR.VRSettings.get_enabled’.

Plugin installed is GooglePlayGames, Firebase, GoogleMobileAds, and IAP.

I followed the steps in this forum post, and it works for me now! It involves removing and then reimporting the IAP package:
https://forum.unity.com/threads/iap-troubleshooting-remove-and-reinstall-unity-iap.511747/