PendingPurchasesParams.Builder

public final class PendingPurchasesParams.Builder


Helps construct PendingPurchasesParams that are used to enable pending purchases.

Summary

Public methods

PendingPurchasesParams

Returns PendingPurchasesParams reference to enable pending purchases.

PendingPurchasesParams.Builder

Enables pending purchase for one-time products.

PendingPurchasesParams.Builder

Enables pending purchase for prepaid plans.

Public methods

build

public PendingPurchasesParams build()

Returns PendingPurchasesParams reference to enable pending purchases.

enableOneTimeProducts

public PendingPurchasesParams.Builder enableOneTimeProducts()

Enables pending purchase for one-time products.

This method is required to be called to acknowledge your application has been updated to support purchases that are pending. Pending purchases are not automatically enabled since your application will need to be updated to ensure entitlement is not granted before payment has been secured. For more information on how to handle pending transactions see https://developer.android.com/google/play/billing/billing_library_overview.

Mandatory.

enablePrepaidPlans

public PendingPurchasesParams.Builder enablePrepaidPlans()

Enables pending purchase for prepaid plans.

Handling pending purchases for prepaid plans is different from one-time products. Your application will need to be updated to ensure subscription entitlements are managed correctly with pending transactions. To learn more see https://developer.android.com/google/play/billing/subscriptions#pending.

Calling this method is optional.