Class SessionCreateParams.ConsentCollection.Builder

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

public static class SessionCreateParams.ConsentCollection.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • putExtraParam

      public SessionCreateParams.ConsentCollection.Builder putExtraParam(String key, Object value)
      Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See SessionCreateParams.ConsentCollection.extraParams for the field documentation.
    • putAllExtraParam

      Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See SessionCreateParams.ConsentCollection.extraParams for the field documentation.
    • setPromotions

      If set to auto, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication from the merchant depending on the customer's locale. Only available to US merchants.