TitleAndroid emulator occurs errors or makes no response when initializing/paying/restoring IAP market.2022-07-29 16:32:10
Writer

Google blocks payment when user device or account seems to be hacked. The IMEI set on the emulator is not the actual information from the mobile device, so Google deems the payment as an abnormal access by hacking which occurs the transaction error. See more details of its phenomena and solutions below:

  • Phenomena
    • When implementing IAP.initialize, it responds network error.
      • IAP_Init_Result Failed : ResultAPI { errorCode = NETWORK, Code = IAPNetworkError, msg = [IAP] Network error occured: [HiveIAP] ResponseMarket market initialize error }
    • When proceeding payment, purchase popup error becomes an obstacle to complete the purchase.
    • When proceeding or restoring a purchase, Google Play displays -1002 error.
      • public static final int IABHELPER_BAD_RESPONSE = -1002;
  • Solution
    • Uninstall the emulator and reinstall the latest version to be identified as a registered device.
    • Enter the real IMEI and other device information of the smartphone on the emulator settings.
    • Create a payment profile or update to your real data on Google Pay Send.
    • If you fail again after trying the solutions above, it means the account is blocked to make the purchase. Contact the Google Play Support team to unblock the payment through user authentication.