Checkout Option
August 21, 2026 ยท View on GitHub
A checkout option as a name-and-value pair.
Structure
CheckoutOption
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
CheckoutOptionName | String | Optional | The checkout option name, such as color or texture.Constraints: Minimum Length: 1, Maximum Length: 200, Pattern: ^[a-zA-Z0-9_'\-., ":;\!?]*$ | String getCheckoutOptionName() | setCheckoutOptionName(String checkoutOptionName) |
CheckoutOptionValue | String | Optional | The checkout option value. For example, the checkout option color might be blue or red while the checkout option texture might be smooth or rippled.Constraints: Minimum Length: 1, Maximum Length: 200, Pattern: ^[a-zA-Z0-9_'\-., ":;\!?]*$ | String getCheckoutOptionValue() | setCheckoutOptionValue(String checkoutOptionValue) |
Example
import com.paypal.sdk.models.CheckoutOption;
CheckoutOption checkoutOption = new CheckoutOption.Builder()
.checkoutOptionName("checkout_option_name4")
.checkoutOptionValue("checkout_option_value8")
.build();