Class SessionCreateParams.PhoneNumberCollection

java.lang.Object
com.stripe.param.checkout.SessionCreateParams.PhoneNumberCollection
Enclosing class:
SessionCreateParams

public static class SessionCreateParams.PhoneNumberCollection extends Object
Determines which entity is allowed to update the shipping details.

Default is client_only. Stripe Checkout client will automatically update the shipping details. If set to server_only, only your server is allowed to update the shipping details.

When set to server_only, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.

  • Method Details

    • builder

    • getEnabled

      public Boolean getEnabled()
      Required. Set to true to enable phone number collection.
    • 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.