New Features
Added enablePendingPurchase to HMSInAppPurchases .
Added result code 60057. Check the new code in Result Codes.
Added error code 1. Check the new error code in Result Codes.
Added the offerUsedStatus, status, subFreeTrialPeriod and subGroupId parameters to ProductInfo.
Updated isEnvironmentReady(boolean isSupportAppTouch) method in HMSInAppPurchases. Your app will use this method to check whether the currently signed-in ID is located in a country or region where HUAWEI IAP is available. If your app is to be released on AppTouch, use isEnvironmentReady(boolean isSupportAppTouch) instead of isEnvironmentReady and pass true.
Added the country and carrierId parameter to IsEnvReadyResult.
Added a class of constants, named SignAlgorithmConstants, which contains the algorithm that you pass for calling a certain IapClient API.
Added SignatureAlgorithm parameter to ConsumeOwnedPurchaseReq ; allowed for the operation of passing the signature algorithm specified in SignAlgorithmConstants to the consumeOwnedPurchase method; added the SignatureAlgorithm parameter to the ConsumeOwnedPurchaseResult .
Added SignatureAlgorithm parameter to OwnedPurchasesReq; allowed for the operation of passing the signature algorithm specified in to obtainOwnedPurchases and obtainOwnedPurchaseRecord methods; added the SignatureAlgorithm parameter to OwnedPurchasesResult.
Added SignatureAlgorithm parameter to PurchaseIntentReq; allowed for the operation of passing the signature algorithm specified in SignAlgorithmConstants to the createPurchaseIntent method;
Added the SignatureAlgorithm parameter to the PurchaseResultInfo.
Added the reservedInfor paramter to the ConsumeOwnedPurchaseReq, OwnedPurchasesReq and ProductInfoReq.
Modified Features
Adapted to Android 13 and updated targetSdkVersion to 33.
The return type of the createPurchaseIntent method has changed to PurchaseResultInfo.