# DeveloperBillingOptionParams


```
public final class DeveloperBillingOptionParams
```

<br />

*** ** * ** ***

Parameters for enabling a developer-provided billing option for a purchase.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder` Helps construct `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams` that are used to initialize the developer-provided billing option. |
| `@https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/java.lang.annotation.RetentionPolicy.html#SOURCE) public annotation https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.LaunchMode` The launch mode for a developer-provided billing option. |

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams#getBillingProgram()()` Returns the `https://developer.android.com/reference/com/android/billingclient/api/BillingClient.BillingProgram` for the developer billing option. |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams#getExternalTransactionToken()()` Returns the external transaction token for the developer billing option. |
| `int` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams#getLaunchMode()()` Returns the `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.LaunchMode` for the developer billing option. |
| `https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams#getLinkUri()()` Returns the `https://developer.android.com/reference/android/net/Uri.html` for the developer billing option. |
| `static https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder` | `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams#newBuilder()()` Constructs a new `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder` instance. |

## Public methods

### getBillingProgram

```
public int getBillingProgram()
```

Returns the `https://developer.android.com/reference/com/android/billingclient/api/BillingClient.BillingProgram` for the developer billing option.

### getExternalTransactionToken

```
public String getExternalTransactionToken()
```

Returns the external transaction token for the developer billing option.

### getLaunchMode

```
public int getLaunchMode()
```

Returns the `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.LaunchMode` for the developer billing option.

### getLinkUri

```
public Uri getLinkUri()
```

Returns the `https://developer.android.com/reference/android/net/Uri.html` for the developer billing option.

### newBuilder

```
public static DeveloperBillingOptionParams.Builder newBuilder()
```

Constructs a new `https://developer.android.com/reference/com/android/billingclient/api/DeveloperBillingOptionParams.Builder` instance.