PurchasingService.enablePendingPurchases() method at any point before initiating a purchase. When a customer initiates a pending IAP, the resulting PurchaseResponse object has a RequestStatus of PENDING. The following code shows an example on how to set up a pending IAP.
In your activity class:
PurchasingListener:
getPurchaseUpdates() to be notified of the purchase status and fulfill the purchase. For details on how to implement getPurchaseUpdates(), see Implement getPurchaseUpdates method.
If the purchase is approved, the RequestStatus is updated to SUCCESSFUL and your app follows its regular logic for successful transactions. If the purchase is in a state where it’s not approved, such as if the parent declines the purchase or lets the purchase request expire, your app doesn’t need to take any further action. When not approved, there will be no notification from RTN and no new transaction when you call getPurchaseUpdates().
To see a sample app that implements pending purchases for consumables, go to the following path in the SDK: Appstore_SDK_<version>/examples/SampleIAPConsumablesApp.
To see a sample app that implements pending purchases for entitlements, go to the following path in the SDK: Appstore_SDK_<version>/examples/SampleIAPEntitlementsApp.

