public static class PaymentSessionConfig.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PaymentSessionConfig |
build() |
PaymentSessionConfig.Builder |
setHiddenShippingInfoFields(java.lang.String... hiddenShippingInfoFields) |
PaymentSessionConfig.Builder |
setOptionalShippingInfoFields(java.lang.String... optionalShippingInfoFields) |
PaymentSessionConfig.Builder |
setPrepopulatedShippingInfo(ShippingInformation shippingInfo) |
PaymentSessionConfig.Builder |
setShippingInfoRequired(boolean shippingInfoRequired) |
PaymentSessionConfig.Builder |
setShippingMethodsRequired(boolean shippingMethodsRequired) |
public PaymentSessionConfig.Builder setHiddenShippingInfoFields(java.lang.String... hiddenShippingInfoFields)
hiddenShippingInfoFields - that should be hidden in the ShippingInfoWidget.public PaymentSessionConfig.Builder setOptionalShippingInfoFields(java.lang.String... optionalShippingInfoFields)
optionalShippingInfoFields - that should be optional in the
ShippingInfoWidgetpublic PaymentSessionConfig.Builder setPrepopulatedShippingInfo(ShippingInformation shippingInfo)
shippingInfo - that should be prepopulated into the ShippingInfoWidgetpublic PaymentSessionConfig.Builder setShippingInfoRequired(boolean shippingInfoRequired)
shippingInfoRequired - whether a ShippingInformation should be required.
If it is required, a screen with a ShippingInfoWidget
can be shown to collect it.public PaymentSessionConfig.Builder setShippingMethodsRequired(boolean shippingMethodsRequired)
shippingMethodsRequired - whether a ShippingMethod
should be required. If it is required, a screen with a
SelectShippingMethodWidget
can be shown to collect it.public PaymentSessionConfig build()