# PendingPurchasesParams.Builder


```
public final class PendingPurchasesParams.Builder
```

<br />

*** ** * ** ***

Helps construct `https://developer.android.com/reference/com/android/billingclient/api/PendingPurchasesParams` that are used to enable pending purchases.

## Summary

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/com/android/billingclient/api/PendingPurchasesParams` | `https://developer.android.com/reference/com/android/billingclient/api/PendingPurchasesParams.Builder#build()()` Returns `https://developer.android.com/reference/com/android/billingclient/api/PendingPurchasesParams` reference to enable pending purchases. |
| `https://developer.android.com/reference/com/android/billingclient/api/PendingPurchasesParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/PendingPurchasesParams.Builder#enableOneTimeProducts()()` Enables pending purchase for one-time products. |
| `https://developer.android.com/reference/com/android/billingclient/api/PendingPurchasesParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/PendingPurchasesParams.Builder#enablePrepaidPlans()()` Enables pending purchase for prepaid plans. |

## Public methods

### build

```
public PendingPurchasesParams build()
```

Returns `https://developer.android.com/reference/com/android/billingclient/api/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.