# DeveloperBillingOptionParams.Builder


```
public final class DeveloperBillingOptionParams.Builder
```

<br />

*** ** * ** ***

Helps construct `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams` that are used to initialize the developer-provided billing option.

## Summary

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder#build()()` Returns `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams`. |
| `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder#setBillingProgram(int)(int billingProgram)` Sets the billing program. |
| `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder#setExternalTransactionToken(java.lang.String)(https://developer.android.com/reference/java/lang/String.html externalTransactionToken)` Sets the external transaction token. |
| `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder#setLaunchMode(int)(int launchMode)` Sets the developer billing option launch mode. |
| `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder#setLinkUri(android.net.Uri)(https://developer.android.com/reference/android/net/Uri.html linkUri)` The URI where the digital content will be accessed from. |

## Public methods

### build

```
public DeveloperBillingOptionParams build()
```

Returns `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams`.

### setBillingProgram

```
public DeveloperBillingOptionParams.Builder setBillingProgram(int billingProgram)
```

Sets the billing program. Required.

| Parameters |
|---|---|
| `int billingProgram` | The billing program being used. |

### setExternalTransactionToken

```
public DeveloperBillingOptionParams.Builder setExternalTransactionToken(String externalTransactionToken)
```

Sets the external transaction token. This is only required when launching `https://developer.android.com/reference/com/android/billingclient/api/BillingClient.BillingProgram#BILLING_CHOICE()` with an external link where the token is generated beforehand.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html externalTransactionToken` | The external transaction token. |

### setLaunchMode

```
public DeveloperBillingOptionParams.Builder setLaunchMode(int launchMode)
```

Sets the developer billing option launch mode. Only required for billing programs which link the user outside of the app.

| Parameters |
|---|---|
| `int launchMode` | The launch mode. |

### setLinkUri

```
public DeveloperBillingOptionParams.Builder setLinkUri(Uri linkUri)
```

The URI where the digital content will be accessed from. Only required for billing programs which link the user outside of the app.