Class SessionCreateParams.CustomField

Enclosing class:

public static class SessionCreateParams.CustomField extends Object
  • Method Details

    • builder

      public static SessionCreateParams.CustomField.Builder builder()
    • getDropdown

      Configuration for type=dropdown fields.
    • getExtraParams

      public Map<String,Object> getExtraParams()
      Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's @SerializedName value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
    • getKey

      public String getKey()
      Required. String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
    • getLabel

      Required. The label for the field, displayed to the customer.
    • getNumeric

      Configuration for type=numeric fields.
    • getOptional

      public Boolean getOptional()
      Whether the customer is required to complete the field before completing the Checkout Session. Defaults to false.
    • getText

      Configuration for type=text fields.
    • getType

      Required. The type of the field.