Package com.stripe.param.checkout
Class SessionCreateParams.BrandingSettings.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.BrandingSettings.Builder
- Enclosing class:
- SessionCreateParams.BrandingSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setBackgroundColor
(EmptyParam backgroundColor) A hex color value starting with#
representing the background color for the Checkout Session.setBackgroundColor
(String backgroundColor) A hex color value starting with#
representing the background color for the Checkout Session.The border style for the Checkout Session.setBorderStyle
(EmptyParam borderStyle) The border style for the Checkout Session.setButtonColor
(EmptyParam buttonColor) A hex color value starting with#
representing the button color for the Checkout Session.setButtonColor
(String buttonColor) A hex color value starting with#
representing the button color for the Checkout Session.setDisplayName
(String displayName) A string to override the business name shown on the Checkout Session.The font family for the Checkout Session corresponding to one of the supported font families.setFontFamily
(EmptyParam fontFamily) The font family for the Checkout Session corresponding to one of the supported font families.The icon for the Checkout Session.The logo for the Checkout Session.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setBackgroundColor
A hex color value starting with#
representing the background color for the Checkout Session. -
setBackgroundColor
A hex color value starting with#
representing the background color for the Checkout Session. -
setBorderStyle
public SessionCreateParams.BrandingSettings.Builder setBorderStyle(SessionCreateParams.BrandingSettings.BorderStyle borderStyle) The border style for the Checkout Session. -
setBorderStyle
The border style for the Checkout Session. -
setButtonColor
A hex color value starting with#
representing the button color for the Checkout Session. -
setButtonColor
A hex color value starting with#
representing the button color for the Checkout Session. -
setDisplayName
A string to override the business name shown on the Checkout Session. -
putExtraParam
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. SeeSessionCreateParams.BrandingSettings.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. SeeSessionCreateParams.BrandingSettings.extraParams
for the field documentation. -
setFontFamily
public SessionCreateParams.BrandingSettings.Builder setFontFamily(SessionCreateParams.BrandingSettings.FontFamily fontFamily) The font family for the Checkout Session corresponding to one of the supported font families. -
setFontFamily
The font family for the Checkout Session corresponding to one of the supported font families. -
setIcon
public SessionCreateParams.BrandingSettings.Builder setIcon(SessionCreateParams.BrandingSettings.Icon icon) The icon for the Checkout Session. You cannot set bothlogo
andicon
. -
setLogo
public SessionCreateParams.BrandingSettings.Builder setLogo(SessionCreateParams.BrandingSettings.Logo logo) The logo for the Checkout Session. You cannot set bothlogo
andicon
.
-